/*
Theme Name: Norska Casinon
Theme URI: https://norskacasinon.bet
Author: Norska Casinon
Description: Snabbt och SEO-optimerat tema för norskacasinon.bet
Version: 1.3
License: Private
Text Domain: norskacasinon
*/

/* ══ RESET ═══════════════════════════════════════════════════ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { font-family: 'Inter', system-ui, -apple-system, sans-serif; font-size: 16px; line-height: 1.7; color: #1a1a2e; background: #f8f9fc; }
img { max-width: 100%; height: auto; display: block; }
a { color: #2563eb; text-decoration: none; }
a:hover { text-decoration: underline; }
ul { list-style: none; }

/* ══ LAYOUT ══════════════════════════════════════════════════ */
.container { width: 100%; max-width: 1100px; margin: 0 auto; padding: 0 20px; }

/* ══ HEADER ══════════════════════════════════════════════════ */
#site-header {
  background: #0f172a;
  position: sticky;
  top: 0;
  z-index: 999;
  box-shadow: 0 2px 8px rgba(0,0,0,.3);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 60px;
}

/* Logo */
.logo {
  color: #fff;
  font-size: 1.15rem;
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
  flex-shrink: 0;
}
.logo span { color: #f59e0b; }
.logo:hover { text-decoration: none; }

/* ── ONE nav – desktop: horizontal row ── */
#site-nav {
  display: flex;
  align-items: center;
  gap: 4px;
}
#site-nav a {
  color: #94a3b8;
  font-size: .875rem;
  font-weight: 500;
  padding: 7px 14px;
  border-radius: 6px;
  white-space: nowrap;
  transition: background .15s, color .15s;
}
#site-nav a:hover,
#site-nav a.active {
  background: #1e293b;
  color: #fff;
  text-decoration: none;
}

/* Hamburger – hidden on desktop */
#nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 38px;
  height: 38px;
  padding: 8px;
  background: none;
  border: none;
  cursor: pointer;
  flex-shrink: 0;
}
#nav-toggle span {
  display: block;
  height: 2px;
  background: #fff;
  border-radius: 2px;
  transition: transform .2s, opacity .2s;
}
#nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
#nav-toggle.open span:nth-child(2) { opacity: 0; }
#nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ══ HERO ════════════════════════════════════════════════════ */
.hero {
  background: linear-gradient(135deg, #0f172a 0%, #1e3a5f 55%, #0f172a 100%);
  padding: 56px 0 44px;
  color: #fff;
  text-align: center;
}
.hero-badge {
  display: inline-block;
  background: rgba(245,158,11,.15);
  border: 1px solid rgba(245,158,11,.35);
  color: #f59e0b;
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  padding: 4px 12px;
  border-radius: 20px;
  margin-bottom: 16px;
}
h1 {
  font-size: clamp(1.5rem, 3.5vw, 2.5rem);
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: -.03em;
  margin-bottom: 14px;
  color: #fff;
}
.hero-sub {
  font-size: clamp(.95rem, 2vw, 1.1rem);
  color: #94a3b8;
  max-width: 580px;
  margin: 0 auto 24px;
}
.hero-stats {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 16px 40px;
  padding-top: 28px;
  border-top: 1px solid rgba(255,255,255,.08);
}
.stat { text-align: center; }
.stat-num { font-size: clamp(1.3rem, 2.5vw, 1.7rem); font-weight: 800; color: #f59e0b; line-height: 1; }
.stat-label { font-size: .7rem; color: #64748b; margin-top: 3px; text-transform: uppercase; letter-spacing: .05em; }

/* ══ TRUST BAR ═══════════════════════════════════════════════ */
.trust-bar { background: #fff; border-bottom: 1px solid #e2e8f0; padding: 10px 0; }
.trust-inner { display: flex; justify-content: center; align-items: center; gap: 24px; flex-wrap: wrap; }
.trust-item { display: flex; align-items: center; gap: 6px; font-size: .8rem; font-weight: 500; color: #475569; white-space: nowrap; }

/* ══ SECTION HEAD ════════════════════════════════════════════ */
.section-head { text-align: center; margin-bottom: 36px; }
.section-head h2 { font-size: clamp(1.25rem, 2.5vw, 1.85rem); font-weight: 800; color: #0f172a; letter-spacing: -.02em; margin-bottom: 8px; }
.section-head p { color: #64748b; font-size: .95rem; max-width: 520px; margin: 0 auto; }

/* ══ CASINO CARDS ════════════════════════════════════════════ */
.casino-section { padding: 52px 0; }
.casino-list { display: flex; flex-direction: column; gap: 14px; }

.casino-card {
  background: #fff;
  border-radius: 14px;
  border: 1px solid #e2e8f0;
  display: grid;
  grid-template-columns: 52px 1fr auto;
  align-items: center;
  overflow: hidden;
  transition: box-shadow .2s, transform .2s;
}
.casino-card:hover { box-shadow: 0 6px 24px rgba(0,0,0,.09); transform: translateY(-2px); }

.casino-rank {
  background: #0f172a;
  color: #f59e0b;
  font-size: 1.35rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  align-self: stretch;
}
.casino-body {
  padding: 16px 20px;
  display: flex;
  align-items: center;
  gap: 16px;
}
.casino-logo-wrap {
  flex-shrink: 0;
  background: #f8f9fc;
  border-radius: 8px;
  padding: 8px 12px;
  width: 116px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.casino-logo-wrap img { max-height: 38px; max-width: 92px; object-fit: contain; }
.casino-info h3 { font-size: .95rem; font-weight: 700; color: #0f172a; margin-bottom: 3px; }
.casino-tagline { font-size: .84rem; color: #64748b; }
.casino-actions { padding: 16px 20px; }

.btn-primary {
  display: inline-block;
  background: #16a34a;
  color: #fff;
  font-weight: 700;
  font-size: .875rem;
  padding: 11px 20px;
  border-radius: 10px;
  text-decoration: none;
  text-align: center;
  white-space: nowrap;
  transition: background .15s;
}
.btn-primary:hover { background: #15803d; text-decoration: none; color: #fff; }

/* ══ CONTENT ════════════════════════════════════════════════ */
.content-section { padding: 56px 0; background: #fff; }
.content-grid { display: grid; grid-template-columns: 1fr 256px; gap: 52px; align-items: start; }

.prose h2 { font-size: clamp(1.15rem, 2vw, 1.45rem); font-weight: 800; color: #0f172a; margin: 36px 0 10px; letter-spacing: -.02em; }
.prose h2:first-child { margin-top: 0; }
.prose h3 { font-size: 1rem; font-weight: 700; color: #1e293b; margin: 22px 0 8px; }
.prose p { color: #374151; margin-bottom: 14px; line-height: 1.75; }
.prose ul { margin: 10px 0 18px 22px; list-style: disc; }
.prose ul li { color: #374151; margin-bottom: 5px; line-height: 1.65; }
.prose strong { color: #0f172a; }

.toc { background: #f8f9fc; border: 1px solid #e2e8f0; border-radius: 12px; padding: 20px; position: sticky; top: 76px; }
.toc h4 { font-size: .78rem; font-weight: 700; color: #0f172a; text-transform: uppercase; letter-spacing: .06em; margin-bottom: 12px; }
.toc ol { list-style: none; counter-reset: toc; }
.toc ol li { counter-increment: toc; margin-bottom: 7px; }
.toc ol li::before { content: counter(toc) ". "; color: #94a3b8; font-size: .76rem; }
.toc a { font-size: .82rem; color: #475569; text-decoration: none; }
.toc a:hover { color: #2563eb; }

/* ══ BOXES ════════════════════════════════════════════════════ */
.info-box { background: #eff6ff; border-left: 4px solid #2563eb; border-radius: 0 8px 8px 0; padding: 14px 18px; margin: 20px 0; }
.info-box.green { background: #f0fdf4; border-color: #16a34a; }
.info-box.amber { background: #fffbeb; border-color: #f59e0b; }
.info-box p { margin: 0; font-size: .875rem; line-height: 1.65; color: #1e3a5f; }
.info-box.green p { color: #14532d; }
.info-box.amber p { color: #78350f; }

.pros-cons { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin: 20px 0; }
.pros { background: #f0fdf4; border: 1px solid #bbf7d0; border-radius: 10px; padding: 18px; }
.cons { background: #fff1f2; border: 1px solid #fecdd3; border-radius: 10px; padding: 18px; }
.pros h4 { color: #16a34a; font-size: .875rem; font-weight: 700; margin-bottom: 10px; }
.cons h4 { color: #dc2626; font-size: .875rem; font-weight: 700; margin-bottom: 10px; }
.pros ul, .cons ul { margin-left: 16px; list-style: disc; }
.pros ul li, .cons ul li { font-size: .84rem; margin-bottom: 5px; line-height: 1.5; }
.pros ul li { color: #14532d; }
.cons ul li { color: #991b1b; }

.facts-table { width: 100%; border-collapse: collapse; margin: 16px 0; }
.facts-table tr { border-bottom: 1px solid #e2e8f0; }
.facts-table tr:last-child { border-bottom: none; }
.facts-table td { padding: 9px 10px; font-size: .84rem; vertical-align: top; }
.facts-table td:first-child { color: #64748b; font-weight: 600; width: 44%; }
.facts-table td:last-child { color: #1e293b; }

/* ══ FAQ ═════════════════════════════════════════════════════ */
.faq-section { padding: 56px 0; background: #f8f9fc; }
.faq-list { max-width: 760px; margin: 0 auto; display: flex; flex-direction: column; gap: 10px; }
details { background: #fff; border: 1px solid #e2e8f0; border-radius: 10px; overflow: hidden; }
details[open] { border-color: #2563eb; }
summary { padding: 16px 18px; font-weight: 600; font-size: .9rem; color: #0f172a; cursor: pointer; list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 12px; user-select: none; }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; color: #94a3b8; font-size: 1.1rem; flex-shrink: 0; font-weight: 400; }
details[open] summary::after { content: "−"; }
.faq-answer { padding: 0 18px 16px; color: #374151; font-size: .875rem; line-height: 1.7; border-top: 1px solid #f1f5f9; }

/* ══ BREADCRUMB ═══════════════════════════════════════════════ */
.breadcrumb { background: #fff; border-bottom: 1px solid #e2e8f0; padding: 9px 0; }
.breadcrumb ol { display: flex; flex-wrap: wrap; gap: 6px; list-style: none; font-size: .8rem; color: #64748b; align-items: center; }
.breadcrumb li:not(:last-child)::after { content: "/"; color: #cbd5e1; margin-left: 6px; }
.breadcrumb a { color: #64748b; }
.breadcrumb a:hover { color: #2563eb; }
.breadcrumb li:last-child { color: #0f172a; font-weight: 500; }

/* ══ AUTHOR ═══════════════════════════════════════════════════ */
.author-box { background: #f8f9fc; border: 1px solid #e2e8f0; border-radius: 12px; padding: 20px; display: flex; gap: 14px; align-items: flex-start; margin-top: 28px; }
.author-avatar { width: 50px; height: 50px; border-radius: 50%; background: #1e293b; flex-shrink: 0; display: flex; align-items: center; justify-content: center; color: #f59e0b; font-weight: 800; font-size: 1rem; }
.author-name { font-weight: 700; color: #0f172a; margin-bottom: 2px; font-size: .95rem; }
.author-role { font-size: .76rem; color: #94a3b8; margin-bottom: 6px; }
.author-bio { font-size: .84rem; color: #475569; line-height: 1.6; }

/* ══ FOOTER ══════════════════════════════════════════════════ */
footer { background: #0f172a; color: #94a3b8; padding: 44px 0 20px; }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr; gap: 32px; margin-bottom: 36px; }
.footer-brand p { font-size: .84rem; line-height: 1.7; margin-top: 10px; max-width: 260px; }
.footer-col h5 { color: #fff; font-size: .78rem; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; margin-bottom: 14px; }
.footer-col ul li { margin-bottom: 7px; }
.footer-col a { color: #64748b; font-size: .84rem; text-decoration: none; }
.footer-col a:hover { color: #fff; text-decoration: none; }
.footer-bottom { border-top: 1px solid #1e293b; padding-top: 20px; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px; }
.footer-bottom p { font-size: .76rem; color: #475569; }
.footer-logo { color: #fff; font-size: 1.05rem; font-weight: 700; }
.footer-logo span { color: #f59e0b; }
.disclaimer { background: #0a0f1e; padding: 14px 0; }
.disclaimer p { font-size: .72rem; color: #334155; max-width: 760px; margin: 0 auto; line-height: 1.6; padding: 0 20px; text-align: center; }

/* ══ TABLET  768–1024px ══════════════════════════════════════ */
@media (max-width: 1024px) {
  .content-grid { grid-template-columns: 1fr; }
  .toc { display: none; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

/* ══ MOBILE  max 768px ═══════════════════════════════════════ */
@media (max-width: 768px) {

  /* Show hamburger, collapse nav */
  #nav-toggle { display: flex; }

  #site-nav {
    display: none;
    position: absolute;
    top: 60px;
    left: 0;
    right: 0;
    background: #0f172a;
    flex-direction: column;
    border-top: 1px solid #1e293b;
    z-index: 998;
  }
  #site-nav.open { display: flex; }
  #site-nav a {
    padding: 14px 20px;
    border-radius: 0;
    border-bottom: 1px solid #1e293b;
    font-size: 1rem;
  }
  #site-nav a:last-child { border-bottom: none; }

  /* Hero */
  .hero { padding: 36px 0 28px; text-align: left; }
  .hero-sub { text-align: left; margin: 0 0 20px; }
  .hero-stats { justify-content: flex-start; gap: 12px 28px; }

  /* Trust bar */
  .trust-inner { justify-content: flex-start; overflow-x: auto; flex-wrap: nowrap; padding: 0 20px 4px; }

  /* Casino cards – clean mobile layout */
  .casino-card {
    grid-template-columns: 44px 1fr;
    grid-template-rows: 1fr auto;
  }
  .casino-rank {
    grid-row: 1 / 3;
    font-size: 1.2rem;
  }
  .casino-body {
    padding: 14px 14px 8px;
    gap: 12px;
  }
  .casino-logo-wrap {
    width: 88px;
    height: 52px;
    padding: 8px;
    flex-shrink: 0;
  }
  .casino-logo-wrap img { max-height: 34px; max-width: 70px; }
  .casino-info h3 { font-size: .875rem; }
  .casino-tagline { font-size: .78rem; }
  .casino-actions {
    grid-column: 2;
    padding: 0 14px 14px;
  }
  .btn-primary { display: block; width: 100%; padding: 12px; font-size: .9rem; border-radius: 8px; }

  /* Sections */
  .content-section { padding: 36px 0; }
  .faq-section { padding: 36px 0; }
  .casino-section { padding: 36px 0; }

  .pros-cons { grid-template-columns: 1fr; }

  .facts-table td { font-size: .8rem; }
  .facts-table td:first-child { width: 42%; }

  /* Footer */
  .footer-grid { grid-template-columns: 1fr; gap: 24px; }
  .footer-brand p { max-width: 100%; }
  .footer-bottom { flex-direction: column; gap: 4px; }
}
