/* ==========================================================================
   BESTE CASINO NO — stotvigconsult.com — Main Stylesheet
   ========================================================================== */

@font-face {
  font-family: 'Inter';
  font-display: swap;
}

:root {
  --bg: #FFFFFF;
  --bg-alt: #F8F9FA;
  --border: #E5E7EB;
  --text: #111827;
  --muted: #6B7280;
  --accent: #16A34A;
  --accent-dark: #15803d;
  --dark: #0f172a;
  --dark2: #1e293b;
  --radius: 8px;
  --font: 'Inter', system-ui, -apple-system, sans-serif;
  --shadow: 0 1px 3px rgba(0,0,0,.1), 0 1px 2px rgba(0,0,0,.06);
  --shadow-md: 0 4px 6px -1px rgba(0,0,0,.1), 0 2px 4px -1px rgba(0,0,0,.06);
  --shadow-lg: 0 10px 15px -3px rgba(0,0,0,.1), 0 4px 6px -2px rgba(0,0,0,.05);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}

/* ── CONTAINER ── */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 16px;
}

/* ── HEADER / NAV ── */
.site-header {
  background: var(--dark);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 8px rgba(0,0,0,.3);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
  gap: 1rem;
}

.nav-logo {
  font-size: 1.25rem;
  font-weight: 700;
  color: #fff;
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 8px;
}

.nav-logo span { color: var(--accent); }

.nav-links {
  display: flex;
  list-style: none;
  gap: 1.5rem;
}

.nav-links a {
  color: #cbd5e1;
  text-decoration: none;
  font-size: .9rem;
  font-weight: 500;
  transition: color .2s;
}

.nav-links a:hover { color: var(--accent); }

.nav-cta {
  background: var(--accent);
  color: #fff !important;
  padding: 8px 20px;
  border-radius: var(--radius);
  font-weight: 700 !important;
  white-space: nowrap;
  transition: background .2s !important;
}

.nav-cta:hover { background: var(--accent-dark) !important; }

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}

.hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: #fff;
  border-radius: 2px;
  transition: all .3s;
}

.mobile-nav {
  display: none;
  flex-direction: column;
  background: var(--dark2);
  padding: 1rem;
  gap: .5rem;
}

@media (max-width: 768px) {
  .nav-links { display: none; }
  .hamburger { display: flex; }
  .mobile-nav.open { display: flex; }
  .mobile-nav a {
    color: #cbd5e1;
    text-decoration: none;
    padding: .5rem 0;
    font-weight: 500;
    border-bottom: 1px solid rgba(255,255,255,.1);
  }
}

/* ── HERO ── */
.hero {
  background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%) !important;
  color: #fff;
  padding: 80px 0 60px;
}

.hero h1, .hero-desc { color: #f1f5f9; }

.hero h1 {
  font-size: clamp(1.75rem, 4vw, 2.75rem);
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 1rem;
}

.hero-desc {
  font-size: 1.125rem;
  color: #94a3b8;
  max-width: 700px;
  margin-bottom: 2rem;
}

.hero-stats {
  display: flex;
  gap: 2rem;
  flex-wrap: wrap;
  margin-bottom: 2rem;
}

.hero-stat {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.hero-stat-num {
  font-size: 2rem;
  font-weight: 800;
  color: var(--accent);
  line-height: 1;
}

.hero-stat-label {
  font-size: .8rem;
  color: #94a3b8;
  text-align: center;
  margin-top: 4px;
}

.hero-trust {
  display: flex;
  align-items: center;
  gap: .5rem;
  margin: 1.5rem 0;
}

.trust-stars { color: #fbbf24; font-size: 1.2rem; }
.trust-label { color: #94a3b8; font-size: .9rem; }

.hero-author {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255,255,255,.1);
}

.hero-author img {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--accent);
}

.hero-author-name { font-size: .95rem; font-weight: 600; color: #f1f5f9; }
.hero-author-title { font-size: .8rem; color: #94a3b8; }

@media (max-width: 768px) {
  .hero { padding: 50px 0 40px; }
  .hero-stats { gap: 1rem; }
}

/* ── BUTTONS ── */
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: linear-gradient(135deg, #16A34A, #15803d);
  color: #fff;
  padding: 14px 28px;
  border-radius: var(--radius);
  font-weight: 700;
  text-decoration: none;
  font-size: 1rem;
  border: none;
  cursor: pointer;
  transition: transform .2s, box-shadow .2s;
  animation: pulse 2s infinite;
}

.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(22,163,74,.4);
  animation: none;
}

@keyframes pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(22,163,74,.4); }
  50% { box-shadow: 0 0 0 8px rgba(22,163,74,0); }
}

.btn-outline {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: transparent;
  color: var(--accent);
  padding: 12px 24px;
  border-radius: var(--radius);
  font-weight: 600;
  text-decoration: none;
  border: 2px solid var(--accent);
  transition: all .2s;
}

.btn-outline:hover {
  background: var(--accent);
  color: #fff;
}

/* ── SECTION GENERAL ── */
.section-light {
  background: var(--bg);
  padding: 60px 0;
}

.section-alt {
  background: var(--bg-alt);
  padding: 60px 0;
}

.section-dark {
  background: var(--dark);
  color: #fff;
  padding: 60px 0;
}

.section-title {
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 700;
  margin-bottom: 1rem;
  line-height: 1.3;
}

.section-subtitle {
  color: var(--muted);
  max-width: 700px;
  margin-bottom: 2rem;
}

/* ── CONTENT SECTIONS (H2 + banners) ── */
.content-section {
  padding: 60px 0;
}

.content-section-alt {
  background: var(--bg-alt);
  padding: 60px 0;
}

.content-section h2,
.content-section-alt h2 {
  font-size: clamp(1.4rem, 2.5vw, 1.85rem);
  font-weight: 700;
  margin-bottom: 1.25rem;
  color: var(--dark);
  display: block;
  width: 100%;
  float: none;
  clear: both;
}

/* H2 BANNER — на всю ширину, блочный, после H2 */
.h2-banner-wrap {
  display: block;
  width: calc(100% + 32px);
  margin-left: -16px;
  margin-bottom: 1.5rem;
  overflow: hidden;
  line-height: 0;
  clear: both;
  border-radius: 0;
}

.h2-banner-img {
  display: block;
  width: 100%;
  aspect-ratio: 3/1;
  object-fit: cover;
  object-position: center;
}

@media (max-width: 767px) {
  .h2-banner-img { aspect-ratio: 1/1; object-position: center top; }
}

.h2-banner-wrap figcaption {
  font-size: 11px;
  color: #6b7280;
  text-align: right;
  padding: 4px 8px 0;
  font-style: italic;
  line-height: 1.4;
  display: block;
}

.section-body { margin-top: 1rem; }

.section-body p {
  margin-bottom: 1rem;
  line-height: 1.75;
  color: var(--text);
}

.section-body ul, .section-body ol {
  margin: 1rem 0 1.5rem 1.5rem;
}

.section-body li {
  margin-bottom: .5rem;
  line-height: 1.7;
}

.section-body table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.5rem 0;
  font-size: .9rem;
  overflow-x: auto;
  display: block;
}

.section-body thead {
  background: var(--dark);
  color: #fff;
}

.section-body th, .section-body td {
  padding: 10px 14px;
  text-align: left;
  border: 1px solid var(--border);
  white-space: nowrap;
}

.section-body th { font-weight: 600; white-space: nowrap; }

.section-body tbody tr:hover { background: var(--bg-alt); }

/* ── VITRINA ── */
.vitrina-section { background: var(--bg-alt); padding: 60px 0; }

.vitrina-title-wrap { text-align: center; margin-bottom: 2rem; }

.vitrina-badge {
  display: inline-block;
  background: var(--accent);
  color: #fff;
  font-size: .75rem;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: 99px;
  margin-bottom: .75rem;
  letter-spacing: .05em;
  text-transform: uppercase;
}

.vitrina-grid {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.casino-card {
  display: grid;
  grid-template-columns: 40px 1fr auto;
  gap: 1.25rem;
  align-items: center;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 1.25rem;
  box-shadow: var(--shadow);
  transition: box-shadow .2s, transform .2s;
  position: relative;
}

.casino-card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-2px);
}

.casino-card.top-pick {
  border-color: var(--accent);
  border-width: 2px;
}

.casino-card.top-pick::before {
  content: '🏆 #1 Beste Valg';
  position: absolute;
  top: -12px;
  left: 16px;
  background: var(--accent);
  color: #fff;
  font-size: .7rem;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 4px;
  letter-spacing: .05em;
}

.casino-rank {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--muted);
  text-align: center;
  line-height: 1;
}

.casino-card.top-pick .casino-rank { color: var(--accent); }

.casino-badge {
  display: inline-block;
  background: #f0fdf4;
  color: var(--accent-dark);
  font-size: .75rem;
  font-weight: 600;
  padding: 2px 10px;
  border-radius: 99px;
  border: 1px solid #bbf7d0;
  margin-bottom: .4rem;
}

.casino-name {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--dark);
  margin-bottom: .25rem;
}

.casino-license {
  font-size: .8rem;
  color: var(--muted);
  margin-bottom: .3rem;
}

.casino-bonus {
  font-size: .9rem;
  font-weight: 600;
  color: var(--accent-dark);
  margin-bottom: .5rem;
}

.casino-features {
  display: flex;
  flex-wrap: wrap;
  gap: .35rem;
}

.feature-tag {
  font-size: .72rem;
  background: var(--bg-alt);
  color: var(--text);
  padding: 2px 8px;
  border-radius: 4px;
  border: 1px solid var(--border);
}

.casino-cta {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .5rem;
  min-width: 140px;
}

.casino-rating {
  font-weight: 700;
  color: var(--dark);
  font-size: .9rem;
}

.casino-cta .btn-primary {
  width: 100%;
  justify-content: center;
  font-size: .9rem;
  padding: 10px 16px;
}

@media (max-width: 768px) {
  .casino-card {
    grid-template-columns: 1fr;
    gap: .75rem;
  }
  .casino-rank { font-size: 1rem; text-align: left; }
  .casino-cta { align-items: stretch; }
  .casino-cta .btn-primary { text-align: center; }
}

/* ── E-E-A-T AUTHOR BOX ── */
.eeat-section { background: var(--dark); padding: 60px 0; }

.author-box {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 2rem;
  align-items: start;
  background: var(--dark2);
  border-radius: 12px;
  padding: 2rem;
  border: 1px solid rgba(255,255,255,.1);
}

.author-box-photo {
  text-align: center;
}

.author-box-photo img {
  width: 160px;
  height: 160px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid var(--accent);
  margin-bottom: 1rem;
}

.author-box-name {
  font-size: 1rem;
  font-weight: 700;
  color: #f1f5f9;
  margin-bottom: .25rem;
}

.author-box-title {
  font-size: .8rem;
  color: var(--accent);
  font-weight: 600;
}

.author-box-content h2 {
  font-size: 1.4rem;
  font-weight: 700;
  color: #f1f5f9;
  margin-bottom: 1rem;
}

.author-box-bio {
  color: #94a3b8;
  line-height: 1.7;
  margin-bottom: 1.5rem;
}

.author-expertise {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
}

.expertise-tag {
  background: rgba(22,163,74,.15);
  color: #4ade80;
  font-size: .8rem;
  font-weight: 500;
  padding: 4px 12px;
  border-radius: 4px;
  border: 1px solid rgba(22,163,74,.3);
}

@media (max-width: 768px) {
  .author-box { grid-template-columns: 1fr; text-align: center; }
  .author-expertise { justify-content: center; }
}

/* ── REVIEWED BY ── */
.reviewed-by-section { background: var(--bg-alt); padding: 60px 0; }

.reviewed-by-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

@media (max-width: 768px) {
  .reviewed-by-cards { grid-template-columns: 1fr; }
}

.reviewer-card {
  background: #fff;
  border-radius: 12px;
  padding: 1.5rem;
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
}

.reviewer-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 1rem;
}

.reviewer-photo {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--border);
}

.reviewer-name {
  font-size: 1rem;
  font-weight: 700;
  color: var(--dark);
}

.reviewer-title {
  font-size: .8rem;
  color: var(--muted);
}

.reviewer-stars { color: #fbbf24; font-size: 1rem; margin-bottom: .75rem; }

.reviewer-quote {
  font-style: italic;
  color: var(--muted);
  font-size: .9rem;
  line-height: 1.6;
}

.reviewer-date {
  font-size: .75rem;
  color: var(--muted);
  margin-top: .75rem;
}

/* ── FAQ ── */
.faq-section { background: var(--bg); padding: 60px 0; }

.faq-list { max-width: 800px; margin: 0 auto; }

.faq-item {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  margin-bottom: .75rem;
  overflow: hidden;
}

.faq-question {
  width: 100%;
  background: none;
  border: none;
  text-align: left;
  padding: 1.1rem 1.25rem;
  font-size: .95rem;
  font-weight: 600;
  color: var(--dark);
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  font-family: var(--font);
  transition: background .2s;
}

.faq-question:hover { background: var(--bg-alt); }

.faq-icon {
  font-size: 1.2rem;
  color: var(--accent);
  transition: transform .3s;
  flex-shrink: 0;
}

.faq-item.open .faq-icon { transform: rotate(45deg); }

.faq-answer {
  display: none;
  padding: 0 1.25rem 1.1rem;
  color: var(--text);
  font-size: .9rem;
  line-height: 1.7;
  border-top: 1px solid var(--border);
}

.faq-item.open .faq-answer { display: block; }

/* ── FOOTER ── */
.site-footer {
  background: var(--dark);
  color: #94a3b8;
  padding: 48px 0 32px;
}

.footer-inner {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 3rem;
  margin-bottom: 2rem;
}

@media (max-width: 768px) {
  .footer-inner { grid-template-columns: 1fr; gap: 2rem; }
}

.footer-brand-name {
  font-size: 1.1rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: .5rem;
}

.footer-tagline {
  font-size: .85rem;
  color: #64748b;
}

.footer-nav ul { list-style: none; }
.footer-nav li { margin-bottom: .5rem; }
.footer-nav a { color: #94a3b8; text-decoration: none; font-size: .9rem; transition: color .2s; }
.footer-nav a:hover { color: var(--accent); }
.footer-nav-title { font-size: .8rem; font-weight: 700; color: #fff; text-transform: uppercase; letter-spacing: .08em; margin-bottom: .75rem; }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.1);
  padding-top: 1.5rem;
  text-align: center;
}

.disclaimer {
  font-size: .78rem;
  color: #64748b;
  max-width: 800px;
  margin: 0 auto 1rem;
  line-height: 1.6;
}

.age-badge {
  display: inline-block;
  background: #dc2626;
  color: #fff;
  font-size: .75rem;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 4px;
  margin-left: 6px;
  vertical-align: middle;
}

/* ── STICKY CTA (mobile) ── */
.sticky-cta {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: var(--dark2);
  padding: 12px 16px;
  display: none;
  justify-content: center;
  align-items: center;
  gap: 12px;
  z-index: 90;
  border-top: 1px solid rgba(255,255,255,.1);
  box-shadow: 0 -4px 12px rgba(0,0,0,.3);
}

.sticky-cta-text { color: #cbd5e1; font-size: .85rem; }

.sticky-cta .btn-primary {
  padding: 10px 20px;
  font-size: .9rem;
  animation: none;
}

@media (max-width: 768px) {
  .sticky-cta { display: flex; }
}

/* ── POPUP ── */
.popup-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.7);
  z-index: 200;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}

.popup-overlay.show { display: flex; }

.popup-box {
  background: #fff;
  border-radius: 16px;
  padding: 2rem;
  max-width: 480px;
  width: 100%;
  text-align: center;
  position: relative;
}

.popup-close {
  position: absolute;
  top: 12px;
  right: 16px;
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  color: var(--muted);
  line-height: 1;
}

.popup-emoji { font-size: 3rem; margin-bottom: .75rem; }

.popup-title {
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--dark);
  margin-bottom: .5rem;
}

.popup-desc { color: var(--muted); margin-bottom: 1.5rem; }
