/*
Theme Name: Berit Bogetoft
Theme URI: https://beritbogetoft.com
Description: Custom theme for Berit Bogetoft fan site
Author: BeritBogetoft.com
Version: 2.7
Text Domain: beritbogetoft
*/

/* === Reset & Base === */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  color: #333;
  background: #f9f9fb;
  line-height: 1.7;
}
a { color: #c0392b; text-decoration: none; transition: color .2s; }
a:hover { color: #e74c3c; }
img { max-width: 100%; height: auto; }
ul { list-style: none; }

/* === Content === */
.content-wrap {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem 3rem;
}
.main-content {
  background: #fff;
  border-radius: 12px;
  padding: 2.5rem 3rem;
  box-shadow: 0 2px 12px rgba(0,0,0,.06);
}
.main-content h2 {
  font-size: 1.6rem;
  color: #1a1a2e;
  margin: 2rem 0 1rem;
  padding-bottom: .5rem;
  border-bottom: 2px solid #c0392b;
}
.main-content h2:first-child { margin-top: 0; }
.main-content p { margin-bottom: 1rem; }
.main-content ul {
  margin: 0 0 1.5rem 1.5rem;
  list-style: disc;
}
.main-content ul li {
  margin-bottom: .5rem;
  line-height: 1.6;
}

/* === FAQ === */
.faq-section { margin-top: 2.5rem; }
.faq-section h2 { text-align: center; }
.faq-item {
  background: #f9f9fb;
  border: 1px solid #eee;
  border-radius: 8px;
  margin-bottom: .75rem;
  overflow: hidden;
}
.faq-item summary {
  padding: 1rem 1.25rem;
  cursor: pointer;
  font-weight: 600;
  font-size: 1rem;
  color: #1a1a2e;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: '+';
  font-size: 1.4rem;
  color: #c0392b;
  font-weight: 300;
  transition: transform .2s;
}
.faq-item[open] summary::after {
  content: '\2212';
}
.faq-answer {
  padding: 0 1.25rem 1rem;
  color: #555;
}

/* === Related Links === */
.links-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: .75rem;
  margin-top: 1rem;
}
.links-grid a {
  display: block;
  background: #f5f5f5;
  padding: .75rem 1rem;
  border-radius: 8px;
  color: #1a1a2e;
  font-size: .9rem;
  text-align: center;
  transition: background .2s, transform .15s;
  border: 1px solid #eee;
}
.links-grid a:hover {
  background: #c0392b;
  color: #fff;
  transform: translateY(-2px);
}

/* === Cookie Banner === */
.cookie-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.5);
  z-index: 9998;
}
.cookie-overlay.active { display: block; }
.cookie-banner {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 9999;
  background: #fff;
  box-shadow: 0 -4px 20px rgba(0,0,0,.15);
  border-top: 3px solid #c0392b;
}
.cookie-banner.active { display: block; }
.cookie-inner {
  max-width: 900px;
  margin: 0 auto;
  padding: 1.5rem 2rem;
}
.cookie-inner h3 {
  display: flex;
  align-items: center;
  gap: .5rem;
  font-size: 1.1rem;
  margin-bottom: .75rem;
  color: #1a1a2e;
}
.cookie-text {
  font-size: .9rem;
  color: #555;
  line-height: 1.6;
  margin-bottom: 1rem;
}
.cookie-toggle {
  background: none;
  border: none;
  color: #c0392b;
  cursor: pointer;
  font-size: .85rem;
  text-decoration: underline;
  margin-bottom: 1rem;
  display: block;
}
.cookie-options { margin-bottom: 1rem; }
.cookie-option {
  display: flex;
  align-items: flex-start;
  gap: .75rem;
  padding: .75rem 0;
  border-bottom: 1px solid #eee;
}
.cookie-option input[type="checkbox"] {
  margin-top: .25rem;
  width: 18px;
  height: 18px;
  accent-color: #c0392b;
}
.cookie-option-label strong { display: block; font-size: .9rem; }
.cookie-option-label span { display: block; font-size: .8rem; color: #888; }
.cookie-buttons {
  display: flex;
  gap: .75rem;
  flex-wrap: wrap;
}
.cookie-btn {
  padding: .65rem 1.5rem;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  font-size: .9rem;
  font-weight: 600;
  transition: background .2s;
}
.cookie-btn-accept {
  background: #c0392b;
  color: #fff;
}
.cookie-btn-accept:hover { background: #a93226; }
.cookie-btn-reject {
  background: #eee;
  color: #333;
}
.cookie-btn-reject:hover { background: #ddd; }
.cookie-btn-save {
  background: #1a1a2e;
  color: #fff;
}
.cookie-btn-save:hover { background: #2a2a4e; }

/* === 404 Page === */
.error-404-section {
  padding: 8rem 1.5rem 5rem;
  text-align: center;
}
.error-404-inner {
  max-width: 640px;
  margin: 0 auto;
}
.error-404-code {
  font-size: 8rem;
  font-weight: 900;
  color: #c0392b;
  line-height: 1;
  display: block;
  margin-bottom: 1rem;
}
.error-404-section h1 {
  font-size: 2rem;
  color: #1a1a2e;
  margin-bottom: 1rem;
}
.error-404-section p {
  color: #555;
  font-size: 1.1rem;
  line-height: 1.7;
  margin-bottom: 2rem;
}
.error-404-actions {
  margin-bottom: 3rem;
}
.error-404-btn {
  display: inline-block;
  padding: 0.75rem 2rem;
  background: #c0392b;
  color: #fff;
  border-radius: 8px;
  font-weight: 600;
  transition: background .2s;
}
.error-404-btn:hover {
  background: #a93226;
  color: #fff;
}
.error-404-links h2 {
  font-size: 1.2rem;
  color: #1a1a2e;
  margin-bottom: 1.5rem;
  border: none;
}

/* === Last Updated Badge === */
.page-last-updated {
  font-size: 0.875rem;
  color: #888;
  margin-bottom: 1.5rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid #eee;
}

/* === Responsive === */
@media (max-width: 768px) {
  .main-content { padding: 1.5rem; }
  .links-grid { grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); }
}
