/* =====================================================
   Beste Casino NO — sorvarangerfilmklubb.com
   SEO Factory v3.9.7 — Clean Convert Design
   ===================================================== */

@font-face {
  font-family: 'Inter';
  font-display: swap;
  src: local('Inter');
}

: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, sans-serif;
  --shadow: 0 1px 3px rgba(0,0,0,.1), 0 1px 2px 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;
}

img { max-width: 100%; height: auto; }

a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }

h1, h2, h3, h4 { line-height: 1.25; font-weight: 700; }
h2 { font-size: clamp(1.4rem, 3vw, 1.9rem); margin-bottom: 1rem; color: var(--dark); }
h3 { font-size: 1.15rem; margin-bottom: .5rem; }

p { margin-bottom: 1rem; }
ul, ol { padding-left: 1.5rem; margin-bottom: 1rem; }
li { margin-bottom: .35rem; }

table { width: 100%; border-collapse: collapse; margin-bottom: 1.5rem; font-size: .9rem; }
th { background: var(--dark); color: #fff; padding: .6rem .8rem; text-align: left; }
td { padding: .55rem .8rem; border-bottom: 1px solid var(--border); }
caption { font-size: .85rem; color: var(--muted); margin-bottom: .4rem; text-align: left; font-style: italic; }
tr:hover td { background: var(--bg-alt); }

/* ─── LAYOUT ─────────────────────────────────── */
.container { max-width: 1100px; margin: 0 auto; padding: 0 1rem; }
.section { padding: 3rem 0; }
.section-alt { background: var(--bg-alt); }
.section-dark { background: var(--dark); color: #fff; }
.section-dark h2 { color: #f1f5f9; }
.section-dark p, .section-dark li { color: #cbd5e1; }

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

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: .8rem 1rem;
  max-width: 1100px;
  margin: 0 auto;
}

.site-logo {
  font-weight: 700;
  font-size: 1.15rem;
  color: #fff;
  display: flex;
  align-items: center;
  gap: .4rem;
}
.site-logo span { color: var(--accent); }

.desktop-nav { display: flex; gap: 1.5rem; list-style: none; }
.desktop-nav a { color: #e2e8f0; font-size: .92rem; font-weight: 500; transition: color .2s; }
.desktop-nav a:hover { color: var(--accent); text-decoration: none; }

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  background: none;
  border: none;
  padding: 4px;
}
.hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: #fff;
  border-radius: 2px;
  transition: .3s;
}

.mobile-nav { display: none; }

@media (max-width: 768px) {
  .desktop-nav { display: none; }
  .hamburger { display: flex; }
  .mobile-nav {
    flex-direction: column;
    gap: 0;
    list-style: none;
    background: var(--dark2);
    padding: .5rem 0;
  }
  .mobile-nav.open { display: flex; }
  .mobile-nav a {
    display: block;
    color: #e2e8f0;
    padding: .7rem 1.2rem;
    font-size: .95rem;
    font-weight: 500;
    border-bottom: 1px solid rgba(255,255,255,.07);
  }
  .mobile-nav a:hover { background: rgba(255,255,255,.05); text-decoration: none; }
}

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

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

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  background: rgba(22,163,74,.2);
  border: 1px solid rgba(22,163,74,.4);
  color: #4ade80;
  font-size: .8rem;
  font-weight: 600;
  padding: .25rem .7rem;
  border-radius: 100px;
  margin-bottom: 1rem;
  letter-spacing: .03em;
  text-transform: uppercase;
}

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

.hero-desc {
  font-size: 1.1rem;
  color: #94a3b8;
  max-width: 640px;
  margin-bottom: 1.5rem;
}

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

.stat-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

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

.stat-label {
  font-size: .75rem;
  color: #64748b;
  text-transform: uppercase;
  letter-spacing: .06em;
  margin-top: .2rem;
}

.hero-cta-row {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 1.5rem;
}

.trust-stars {
  display: flex;
  align-items: center;
  gap: .4rem;
  color: #f59e0b;
  font-size: .9rem;
}

.trust-stars strong { color: #f1f5f9; }

.hero-author {
  display: flex;
  align-items: center;
  gap: .7rem;
  background: rgba(255,255,255,.05);
  border: 1px solid rgba(255,255,255,.1);
  border-radius: var(--radius);
  padding: .6rem .9rem;
  max-width: fit-content;
  margin-top: 1.5rem;
}

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

.hero-author-info { display: flex; flex-direction: column; }
.hero-author-name { font-size: .88rem; font-weight: 600; color: #f1f5f9; }
.hero-author-title { font-size: .75rem; color: #64748b; }

/* ─── 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;
  font-size: 1rem;
  text-decoration: none;
  animation: pulse 2s infinite;
  transition: opacity .2s, transform .1s;
  white-space: nowrap;
  box-shadow: 0 4px 12px rgba(22,163,74,.35);
}

.btn-primary:hover { opacity: .93; text-decoration: none; transform: translateY(-1px); }
.btn-primary:active { transform: translateY(0); }

.btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: transparent;
  color: #f1f5f9;
  border: 1px solid rgba(255,255,255,.25);
  padding: 12px 22px;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: .95rem;
  text-decoration: none;
  transition: background .2s;
}
.btn-secondary:hover { background: rgba(255,255,255,.07); text-decoration: 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); }
}

/* ─── H2 BANNERS ─────────────────────────────── */
.h2-banner-wrap {
  display: block;
  width: calc(100% + 32px);
  margin-left: -16px;
  overflow: hidden;
  line-height: 0;
  margin-bottom: 1.5rem;
  border-radius: 4px;
}

@media (min-width: 1100px) {
  .h2-banner-wrap {
    width: calc(100% + 2rem);
    margin-left: -1rem;
  }
}

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

@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;
}

/* ─── VITRINA ─────────────────────────────────── */
.vitrina-section { padding: 3rem 0; background: var(--bg-alt); }
.vitrina-title { text-align: center; margin-bottom: 2rem; }
.vitrina-grid { display: flex; flex-direction: column; gap: 1rem; }

.casino-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.25rem;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 1rem;
  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 Anbefalt';
  position: absolute;
  top: -11px;
  left: 1rem;
  background: var(--accent);
  color: #fff;
  font-size: .72rem;
  font-weight: 700;
  padding: .15rem .6rem;
  border-radius: 100px;
  letter-spacing: .04em;
  text-transform: uppercase;
}

.casino-rank {
  width: 40px;
  height: 40px;
  background: var(--dark);
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 1rem;
  flex-shrink: 0;
}

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

.casino-main { min-width: 0; }
.casino-badge { display: inline-block; font-size: .75rem; font-weight: 600; color: var(--accent); margin-bottom: .3rem; }
.casino-name { font-size: 1.1rem; font-weight: 700; color: var(--dark); margin-bottom: .3rem; }
.casino-license { font-size: .8rem; color: var(--muted); margin-bottom: .3rem; }
.casino-bonus { font-size: .88rem; font-weight: 600; color: var(--dark); margin-bottom: .4rem; }

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

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

.casino-cta {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .5rem;
  flex-shrink: 0;
}

.casino-rating { font-size: .88rem; font-weight: 700; color: #f59e0b; }

@media (max-width: 640px) {
  .casino-card { grid-template-columns: auto 1fr; }
  .casino-cta { grid-column: 1 / -1; flex-direction: row; justify-content: space-between; align-items: center; }
  .btn-primary { padding: 10px 18px; font-size: .9rem; }
}

/* ─── SECTION CONTENT ────────────────────────── */
.section-content { max-width: 800px; }
.section-content-full { max-width: 100%; }

.content-section-light { background: var(--bg); }
.content-section-grey { background: var(--bg-alt); }
.content-section-dark { background: var(--dark); color: #f1f5f9; }
.content-section-dark h2 { color: #f1f5f9; }
.content-section-dark p, .content-section-dark li { color: #cbd5e1; }
.content-section-dark td { color: #cbd5e1; border-color: rgba(255,255,255,.1); }
.content-section-dark th { background: rgba(255,255,255,.1); }
.content-section-dark tr:hover td { background: rgba(255,255,255,.04); }

/* ─── EEAT AUTHOR BOX ────────────────────────── */
.eeat-section { background: var(--bg-alt); padding: 3rem 0; }

.author-box {
  display: flex;
  gap: 2rem;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2rem;
  box-shadow: var(--shadow);
}

.author-photo {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid var(--accent);
  flex-shrink: 0;
}

.author-info h3 { font-size: 1.3rem; margin-bottom: .25rem; }
.author-title-tag { color: var(--muted); font-size: .9rem; margin-bottom: .75rem; }
.author-bio { font-size: .95rem; color: var(--text); margin-bottom: 1rem; }

.author-expertise-list {
  display: flex;
  flex-wrap: wrap;
  gap: .4rem;
  list-style: none;
  padding: 0;
}

.author-expertise-list li {
  background: rgba(22,163,74,.08);
  border: 1px solid rgba(22,163,74,.2);
  color: var(--accent-dark);
  font-size: .78rem;
  font-weight: 600;
  padding: .2rem .6rem;
  border-radius: 4px;
  margin-bottom: 0;
}

@media (max-width: 600px) {
  .author-box { flex-direction: column; align-items: center; text-align: center; }
  .author-expertise-list { justify-content: center; }
}

/* ─── REVIEWED BY ────────────────────────────── */
.reviewed-section { background: var(--bg); padding: 3rem 0; }
.reviewed-section h2 { text-align: center; margin-bottom: 1.5rem; }

.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: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.25rem;
  text-align: center;
  box-shadow: var(--shadow);
}

.reviewer-photo {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--border);
  margin: 0 auto .75rem;
  display: block;
}

.reviewer-name { font-size: 1rem; font-weight: 700; margin-bottom: .15rem; }
.reviewer-role { font-size: .8rem; color: var(--muted); margin-bottom: .35rem; }
.reviewer-stars { color: #f59e0b; font-size: .9rem; margin-bottom: .6rem; }
.reviewer-quote { font-size: .85rem; color: var(--text); font-style: italic; line-height: 1.5; }
.reviewer-date { font-size: .75rem; color: var(--muted); margin-top: .4rem; }

/* ─── FAQ ────────────────────────────────────── */
.faq-section { background: var(--bg-alt); padding: 3rem 0; }
.faq-section h2 { text-align: center; margin-bottom: 2rem; }
.faq-list { max-width: 800px; margin: 0 auto; display: flex; flex-direction: column; gap: .5rem; }

.faq-item {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}

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

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

.faq-question::after {
  content: '+';
  font-size: 1.3rem;
  font-weight: 300;
  color: var(--accent);
  flex-shrink: 0;
  transition: transform .3s;
}

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

.faq-answer {
  display: none;
  padding: 0 1.25rem 1rem;
  font-size: .92rem;
  color: var(--muted);
  line-height: 1.6;
}

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

/* ─── FOOTER ─────────────────────────────────── */
.site-footer {
  background: var(--dark);
  color: #94a3b8;
  padding: 2.5rem 0 1.5rem;
  font-size: .85rem;
}

.footer-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 1rem;
}

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

@media (max-width: 640px) {
  .footer-top { grid-template-columns: 1fr; gap: 1.25rem; }
}

.footer-brand { color: #f1f5f9; font-weight: 700; font-size: 1rem; margin-bottom: .5rem; }
.footer-brand span { color: var(--accent); }
.footer-desc { color: #64748b; line-height: 1.5; }

.footer-links-title { color: #f1f5f9; font-weight: 600; margin-bottom: .5rem; }
.footer-links { list-style: none; padding: 0; }
.footer-links li { margin-bottom: .3rem; }
.footer-links a { color: #64748b; transition: color .2s; }
.footer-links a:hover { color: var(--accent); text-decoration: none; }

.footer-disclaimer {
  border-top: 1px solid rgba(255,255,255,.08);
  padding-top: 1.25rem;
  color: #475569;
  font-size: .78rem;
  line-height: 1.6;
}

.age-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  background: #ef4444;
  color: #fff;
  font-size: .7rem;
  font-weight: 800;
  border-radius: 50%;
  margin-right: .4rem;
  vertical-align: middle;
}

/* ─── STICKY CTA ─────────────────────────────── */
.sticky-cta {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 200;
  background: var(--dark);
  border-top: 2px solid var(--accent);
  padding: .75rem 1rem;
  box-shadow: 0 -4px 12px rgba(0,0,0,.3);
}

.sticky-cta-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 480px;
  margin: 0 auto;
  gap: .75rem;
}

.sticky-cta-text { color: #f1f5f9; font-size: .88rem; font-weight: 600; }
.sticky-cta-sub { color: #64748b; font-size: .75rem; }

@media (max-width: 768px) {
  .sticky-cta { display: block; }
  body { padding-bottom: 70px; }
}

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

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

.popup-box {
  background: var(--dark2);
  border: 1px solid rgba(255,255,255,.15);
  border-radius: 12px;
  padding: 2rem;
  max-width: 420px;
  width: 100%;
  text-align: center;
  position: relative;
  box-shadow: 0 25px 50px rgba(0,0,0,.5);
}

.popup-close {
  position: absolute;
  top: .75rem;
  right: .75rem;
  background: none;
  border: none;
  color: #64748b;
  font-size: 1.4rem;
  cursor: pointer;
  line-height: 1;
  transition: color .2s;
}
.popup-close:hover { color: #f1f5f9; }

.popup-icon { font-size: 2.5rem; margin-bottom: .75rem; }
.popup-title { font-size: 1.3rem; font-weight: 700; color: #f1f5f9; margin-bottom: .5rem; }
.popup-desc { color: #94a3b8; font-size: .9rem; margin-bottom: 1.25rem; }
.popup-disclaimer { font-size: .72rem; color: #475569; margin-top: .75rem; }

/* ─── BREADCRUMBS ────────────────────────────── */
.breadcrumb {
  display: flex;
  align-items: center;
  gap: .4rem;
  font-size: .82rem;
  color: var(--muted);
  margin-bottom: 1.25rem;
  flex-wrap: wrap;
}
.breadcrumb a { color: var(--muted); }
.breadcrumb a:hover { color: var(--accent); }
.breadcrumb-sep { color: #d1d5db; }

/* ─── AUTHOR PAGE ────────────────────────────── */
.author-page { background: var(--bg-alt); min-height: 60vh; padding: 3rem 0; }

.author-page-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2.5rem;
  max-width: 720px;
  margin: 0 auto;
  box-shadow: var(--shadow-lg);
}

.author-page-photo {
  width: 140px;
  height: 140px;
  border-radius: 50%;
  object-fit: cover;
  border: 4px solid var(--accent);
  display: block;
  margin: 0 auto 1.5rem;
}

.author-page-card h1 {
  font-size: 1.8rem;
  text-align: center;
  margin-bottom: .25rem;
  color: var(--dark);
}

.author-page-title {
  text-align: center;
  color: var(--muted);
  font-size: .95rem;
  margin-bottom: 1.5rem;
}

.expertise-section h3 { font-size: 1rem; color: var(--dark); margin-bottom: .75rem; }

/* ─── UTILITIES ───────────────────────────────── */
.text-center { text-align: center; }
.mt-1 { margin-top: .5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mb-2 { margin-bottom: 1rem; }

/* === H2 BANNER SEO (generate-fal-images.py v2.0, rules v3.8.1) === */
.h2-banner-wrap {
  display: block;
  width: calc(100% + 32px);
  margin-left: -16px;
  overflow: hidden;
  line-height: 0;
}
.h2-banner-img {
  display: block;
  width: 100%;
  aspect-ratio: 3/1;
  object-fit: cover;
}
@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;
}
/* === END H2 BANNER SEO === */

/* Table scroll on mobile */
@media (max-width: 600px) {
  table { display: block; overflow-x: auto; -webkit-overflow-scrolling: touch; }
}
