/* ===========================================
   SAKLIG.NET — BESTE CASINO NORGE — MAIN CSS
   =========================================== */

@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, sans-serif;
  --container: 1200px;
}

*, *::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; }

/* CONTAINER */
.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 16px;
}

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

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}

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

.logo-icon { font-size: 1.5rem; }
.logo-accent { color: var(--accent); }

.main-nav .nav-list {
  display: flex;
  list-style: none;
  gap: 24px;
}

.main-nav a {
  color: #cbd5e1;
  font-size: 0.9rem;
  font-weight: 500;
  transition: color 0.2s;
}
.main-nav a:hover { color: var(--accent); text-decoration: none; }

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

/* MOBILE NAV */
.mobile-nav { display: none; }
@media (max-width: 768px) {
  .mobile-nav.open {
    display: flex;
    flex-direction: column;
    background: var(--dark2);
    padding: 16px;
  }
}

.mobile-nav-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.mobile-nav-list a {
  display: block;
  padding: 10px 12px;
  color: #cbd5e1;
  font-size: 1rem;
  border-radius: var(--radius);
}
.mobile-nav-list a:hover { background: rgba(255,255,255,0.08); color: var(--accent); text-decoration: none; }

@media (max-width: 768px) {
  .main-nav { display: none; }
  .hamburger { display: flex; }
}

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

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

.hero-inner { max-width: 800px; }

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(22,163,74,0.15);
  border: 1px solid rgba(22,163,74,0.3);
  color: #4ade80;
  font-size: 0.8rem;
  font-weight: 600;
  padding: 4px 12px;
  border-radius: 20px;
  margin-bottom: 16px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.badge-dot {
  width: 6px;
  height: 6px;
  background: #4ade80;
  border-radius: 50%;
  animation: blink 1.5s infinite;
}
@keyframes blink { 0%, 100% { opacity: 1; } 50% { opacity: 0.3; } }

.hero-h1 {
  font-size: clamp(1.6rem, 4vw, 2.5rem);
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 16px;
  color: #f1f5f9;
}

.hero-desc {
  font-size: 1.1rem;
  color: #94a3b8;
  margin-bottom: 32px;
  line-height: 1.7;
}

.hero-stats {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
  margin-bottom: 32px;
}
.stat-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.1);
  padding: 12px 20px;
  border-radius: var(--radius);
  min-width: 80px;
}
.stat-number {
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--accent);
}
.stat-label {
  font-size: 0.7rem;
  color: #94a3b8;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  white-space: nowrap;
}

.hero-cta { margin-bottom: 24px; }
.cta-disclaimer {
  font-size: 0.75rem;
  color: #64748b;
  margin-top: 8px;
}

.trust-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 24px;
}
.trust-stars { font-size: 1rem; }
.trust-text { font-size: 0.85rem; color: #94a3b8; }

.hero-author {
  display: flex;
  align-items: center;
  gap: 10px;
}
.author-avatar-sm {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 2px solid var(--accent);
  object-fit: cover;
}
.author-name-sm {
  display: block;
  font-size: 0.9rem;
  font-weight: 600;
  color: #f1f5f9;
}
.author-title-sm {
  display: block;
  font-size: 0.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;
  border: none;
  cursor: pointer;
  transition: transform 0.2s;
}
.btn-primary:hover { transform: translateY(-2px); text-decoration: none; }

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

/* ========================
   CONTENT SECTIONS
   ======================== */
.content-section { padding: 64px 0; }
.section-alt { background: var(--bg-alt); }
.section-white { background: var(--bg); }
.section-dark { background: var(--dark); color: #fff; }
.section-dark h2 { color: #f1f5f9; }

.content-section h2 {
  display: block;
  width: 100%;
  float: none;
  clear: both;
  font-size: clamp(1.3rem, 3vw, 1.8rem);
  font-weight: 700;
  margin-bottom: 24px;
  color: var(--dark);
  line-height: 1.3;
}
.section-dark h2 { color: #f1f5f9; }

/* H2 BANNER — full width block under H2 */
.h2-banner-wrap {
  display: block;
  width: calc(100% + 32px);
  margin-left: -16px;
  margin-bottom: 32px;
  overflow: hidden;
  line-height: 0;
  clear: both;
}

.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;
  background: var(--bg-alt);
}
.section-dark .h2-banner-wrap figcaption { background: var(--dark); }
.section-white .h2-banner-wrap figcaption { background: var(--bg); }

.section-body p { margin-bottom: 16px; font-size: 1rem; line-height: 1.75; }
.section-body p:last-child { margin-bottom: 0; }

.content-list {
  margin: 16px 0 16px 20px;
  line-height: 1.8;
}
.content-list li { margin-bottom: 6px; }

/* TABLE */
.table-wrap {
  overflow-x: auto;
  margin: 24px 0;
  border-radius: var(--radius);
  box-shadow: 0 1px 4px rgba(0,0,0,0.08);
}
.comparison-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
}
.comparison-table th {
  background: var(--dark);
  color: #fff;
  padding: 12px 16px;
  text-align: left;
  font-weight: 600;
  white-space: nowrap;
}
.comparison-table td {
  padding: 10px 16px;
  border-bottom: 1px solid var(--border);
  vertical-align: top;
}
.comparison-table tr:last-child td { border-bottom: none; }
.comparison-table tbody tr:hover { background: #f0fdf4; }

/* ========================
   VITRINA
   ======================== */
.vitrina-section { padding: 64px 0; }

.vitrina-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
  margin-top: 32px;
}

.casino-card {
  display: grid;
  grid-template-columns: 48px 1fr auto;
  gap: 16px;
  align-items: center;
  background: #fff;
  border: 2px solid var(--border);
  border-radius: 12px;
  padding: 20px;
  transition: box-shadow 0.2s, transform 0.2s;
  position: relative;
}
.casino-card:hover {
  box-shadow: 0 8px 24px rgba(0,0,0,0.1);
  transform: translateY(-2px);
}
.casino-card.top-pick {
  border-color: var(--accent);
  background: linear-gradient(135deg, #f0fdf4 0%, #fff 100%);
}
.casino-card.top-pick::before {
  content: '🏆 #1 Beste Valg';
  position: absolute;
  top: -12px;
  left: 20px;
  background: var(--accent);
  color: #fff;
  font-size: 0.7rem;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 20px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.casino-rank {
  width: 48px;
  height: 48px;
  background: linear-gradient(135deg, var(--dark), var(--dark2));
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  font-weight: 800;
  flex-shrink: 0;
}
.casino-card.top-pick .casino-rank { background: linear-gradient(135deg, var(--accent), var(--accent-dark)); }

.casino-badge {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--accent);
  background: #f0fdf4;
  border: 1px solid #bbf7d0;
  padding: 2px 8px;
  border-radius: 4px;
  margin-bottom: 6px;
  text-transform: uppercase;
}

.casino-name {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 4px;
}
.casino-license {
  font-size: 0.8rem;
  color: var(--muted);
  margin-bottom: 4px;
}
.casino-bonus {
  font-size: 0.85rem;
  color: var(--dark);
  font-weight: 600;
  margin-bottom: 8px;
}

.casino-features {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.feature-tag {
  font-size: 0.72rem;
  background: #f1f5f9;
  color: #475569;
  padding: 3px 8px;
  border-radius: 4px;
  border: 1px solid #e2e8f0;
}

.casino-cta {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}
.casino-rating {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--dark);
}

@media (max-width: 600px) {
  .casino-card {
    grid-template-columns: 40px 1fr;
    grid-template-rows: auto auto;
  }
  .casino-cta {
    grid-column: 1 / -1;
    flex-direction: row;
    justify-content: space-between;
    width: 100%;
  }
  .btn-primary { font-size: 0.85rem; padding: 10px 16px; }
}

/* ========================
   E-E-A-T AUTHOR BOX
   ======================== */
.eeat-section { padding: 64px 0; }

.section-title-sm {
  font-size: 1rem;
  font-weight: 600;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 24px;
}

.author-box {
  display: flex;
  gap: 32px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 32px;
  align-items: flex-start;
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

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

.author-name {
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 4px;
}
.author-role {
  font-size: 0.9rem;
  color: var(--accent);
  font-weight: 600;
  margin-bottom: 12px;
}
.author-bio {
  font-size: 0.95rem;
  color: var(--text);
  line-height: 1.7;
  margin-bottom: 16px;
}

.expertise-list {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 8px;
}
.expertise-list li {
  background: #f0fdf4;
  color: var(--accent-dark);
  border: 1px solid #bbf7d0;
  padding: 4px 10px;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 500;
}

.author-link {
  display: inline-block;
  margin-top: 12px;
  color: var(--accent);
  font-weight: 600;
  font-size: 0.9rem;
}

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

/* ========================
   REVIEWED BY
   ======================== */
.reviewed-section { padding: 64px 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: var(--bg);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 24px;
  display: flex;
  gap: 16px;
  align-items: flex-start;
  box-shadow: 0 1px 4px rgba(0,0,0,0.05);
}

.reviewer-img {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--border);
  flex-shrink: 0;
}

.reviewer-name {
  display: block;
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 2px;
}
.reviewer-title {
  display: block;
  font-size: 0.78rem;
  color: var(--muted);
  margin-bottom: 4px;
}
.reviewer-date {
  display: block;
  font-size: 0.75rem;
  color: var(--muted);
  margin-bottom: 6px;
}
.reviewer-rating { font-size: 0.85rem; margin-bottom: 8px; }
.reviewer-quote {
  font-size: 0.85rem;
  color: var(--text);
  line-height: 1.6;
  font-style: italic;
}

/* ========================
   FAQ
   ======================== */
.faq-section { padding: 64px 0; }
.faq-section h2 { margin-bottom: 32px; }

.faq-list { display: flex; flex-direction: column; gap: 12px; }

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

.faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  padding: 16px 20px;
  background: none;
  border: none;
  cursor: pointer;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--dark);
  text-align: left;
  gap: 12px;
  transition: background 0.2s;
}
.faq-question:hover { background: #f8f9fa; }
.faq-question[aria-expanded="true"] { background: #f0fdf4; }

.faq-icon {
  font-size: 1.2rem;
  font-weight: 400;
  color: var(--accent);
  flex-shrink: 0;
  transition: transform 0.2s;
}
.faq-question[aria-expanded="true"] .faq-icon { transform: rotate(45deg); }

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
}
.faq-answer p {
  padding: 0 20px 16px;
  font-size: 0.9rem;
  color: var(--text);
  line-height: 1.7;
}

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

.footer-inner {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

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

.footer-links {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
}
.footer-links a {
  color: #94a3b8;
  font-size: 0.85rem;
}
.footer-links a:hover { color: var(--accent); }

.footer-disclaimer {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 20px;
}
.disclaimer-18 {
  font-size: 0.9rem;
  font-weight: 700;
  color: #fbbf24;
  margin-bottom: 8px;
}
.footer-disclaimer p {
  font-size: 0.78rem;
  line-height: 1.6;
  margin-bottom: 8px;
  color: #64748b;
}
.footer-disclaimer a { color: #94a3b8; }
.footer-disclaimer a:hover { color: var(--accent); }

/* ========================
   STICKY CTA
   ======================== */
.sticky-cta {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: rgba(15, 23, 42, 0.95);
  padding: 12px 16px;
  display: flex;
  justify-content: center;
  z-index: 200;
  transform: translateY(100%);
  transition: transform 0.3s ease;
  backdrop-filter: blur(8px);
  border-top: 1px solid rgba(22,163,74,0.3);
}
.sticky-cta.visible { transform: translateY(0); }
.sticky-btn { width: 100%; max-width: 400px; justify-content: center; font-size: 0.95rem; }

@media (min-width: 769px) { .sticky-cta { display: none; } }

/* ========================
   POPUP
   ======================== */
.popup-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.7);
  z-index: 300;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s;
  backdrop-filter: blur(4px);
}
.popup-overlay.active {
  opacity: 1;
  pointer-events: all;
}

.popup-box {
  background: #fff;
  border-radius: 16px;
  padding: 40px 32px;
  max-width: 480px;
  width: 90%;
  text-align: center;
  position: relative;
}
.popup-close {
  position: absolute;
  top: 12px;
  right: 16px;
  background: none;
  border: none;
  font-size: 1.2rem;
  cursor: pointer;
  color: var(--muted);
}
.popup-close:hover { color: var(--text); }
.popup-box h3 { font-size: 1.4rem; margin-bottom: 12px; color: var(--dark); }
.popup-box p { margin-bottom: 20px; color: var(--text); }
.popup-disclaimer { font-size: 0.75rem; color: var(--muted); margin-top: 12px; margin-bottom: 0; }

/* ========================
   RESPONSIVE
   ======================== */
@media (max-width: 768px) {
  .hero { padding: 40px 0; }
  .hero-stats { gap: 12px; }
  .stat-item { padding: 8px 14px; }
  .content-section { padding: 40px 0; }
  .vitrina-section, .eeat-section, .reviewed-section, .faq-section { padding: 40px 0; }
}

@media (max-width: 480px) {
  .hero-h1 { font-size: 1.4rem; }
  .content-section h2 { font-size: 1.2rem; }
  .btn-primary { padding: 12px 20px; font-size: 0.9rem; }
}
