/* =============================================================
   main.css — cthulhigames.com
   ============================================================= */

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

:root {
  --bg: #FFFFFF;
  --bg-alt: #F8F9FA;
  --border: #E5E7EB;
  --text: #111827;
  --muted: #6B7280;
  --accent: #16A34A;
  --dark: #0f172a;
  --dark2: #1e293b;
  --radius: 8px;
  --font: 'Inter', system-ui, sans-serif;
}

*, *::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.7;
  font-size: 16px;
}

.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 20px;
}

/* ---- HEADER ---- */
.site-header {
  background: var(--dark);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 12px rgba(0,0,0,.4);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 20px;
  max-width: 1100px;
  margin: 0 auto;
}
.logo {
  color: #fff;
  font-size: 1.25rem;
  font-weight: 700;
  text-decoration: none;
  letter-spacing: -0.5px;
}
.logo span { color: var(--accent); }

.desktop-nav { display: flex; gap: 28px; list-style: none; }
.desktop-nav a {
  color: #cbd5e1;
  text-decoration: none;
  font-size: .9rem;
  font-weight: 500;
  transition: color .2s;
}
.desktop-nav a:hover { color: #fff; }

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

.mobile-nav { display: none; }
.mobile-nav.open {
  display: flex;
  flex-direction: column;
  background: var(--dark2);
  padding: 16px 20px;
  gap: 12px;
}
.mobile-nav a {
  color: #cbd5e1;
  text-decoration: none;
  font-size: 1rem;
  font-weight: 500;
  padding: 8px 0;
  border-bottom: 1px solid rgba(255,255,255,.08);
}

/* ---- HERO ---- */
.hero {
  background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%) !important;
  color: #fff;
  padding: 72px 0 64px;
}
.hero h1, .hero-desc { color: #f1f5f9; }
.hero h1 {
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 20px;
  letter-spacing: -0.5px;
}
.hero-desc {
  font-size: 1.125rem;
  color: #94a3b8;
  max-width: 680px;
  margin-bottom: 28px;
}
.hero-stats {
  display: flex;
  gap: 32px;
  flex-wrap: wrap;
  margin-bottom: 32px;
}
.hero-stat {
  text-align: center;
}
.hero-stat-num {
  display: block;
  font-size: 1.75rem;
  font-weight: 800;
  color: var(--accent);
}
.hero-stat-label {
  font-size: .8rem;
  color: #94a3b8;
  text-transform: uppercase;
  letter-spacing: .05em;
}
.hero-trust {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 28px;
  flex-wrap: wrap;
}
.trust-stars { color: #fbbf24; font-size: 1.1rem; }
.trust-text { color: #94a3b8; font-size: .9rem; }
.hero-author {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: 28px;
}
.hero-author img {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--accent);
}
.hero-author-info .name { font-weight: 600; color: #f1f5f9; font-size: .95rem; }
.hero-author-info .role { color: #94a3b8; font-size: .82rem; }

.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;
  animation: pulse 2s infinite;
  transition: transform .15s;
}
.btn-primary:hover { transform: translateY(-1px); }
@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-secondary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: transparent;
  border: 2px solid var(--accent);
  color: var(--accent);
  padding: 12px 24px;
  border-radius: var(--radius);
  font-weight: 600;
  text-decoration: none;
  font-size: .95rem;
  transition: all .2s;
}
.btn-secondary:hover { background: var(--accent); color: #fff; }

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

.content-section h2 {
  display: block;
  width: 100%;
  float: none;
  clear: both;
  font-size: clamp(1.4rem, 3vw, 2rem);
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 20px;
  letter-spacing: -0.3px;
}
.content-section.bg-dark h2 { color: #f1f5f9; }

/* H2 BANNER */
.h2-banner-wrap {
  display: block;
  width: calc(100% + 40px);
  margin-left: -20px;
  overflow: hidden;
  line-height: 0;
  clear: both;
  margin-bottom: 28px;
}
.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;
}

.section-body { }
.section-body p { margin-bottom: 16px; }
.section-body ul, .section-body ol { padding-left: 24px; margin-bottom: 16px; }
.section-body li { margin-bottom: 8px; }
.section-body table {
  width: 100%;
  border-collapse: collapse;
  margin: 24px 0;
  font-size: .9rem;
  overflow-x: auto;
  display: block;
}
.section-body th, .section-body td {
  border: 1px solid var(--border);
  padding: 10px 14px;
  text-align: left;
}
.section-body th {
  background: var(--dark);
  color: #fff;
  font-weight: 600;
}
.section-body tr:nth-child(even) td { background: var(--bg-alt); }

/* ---- VITRINA ---- */
.vitrina-section { padding: 64px 0; background: var(--bg-alt); }
.vitrina-section h2 {
  font-size: clamp(1.4rem, 3vw, 2rem);
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 32px;
  float: none;
  clear: both;
}
.vitrina-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}
.casino-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 24px;
  display: flex;
  align-items: flex-start;
  gap: 16px;
  transition: box-shadow .2s, transform .2s;
  position: relative;
}
.casino-card:hover {
  box-shadow: 0 8px 32px rgba(0,0,0,.1);
  transform: translateY(-2px);
}
.casino-card.top-pick {
  border-color: var(--accent);
  box-shadow: 0 0 0 2px var(--accent);
}
.casino-rank {
  min-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;
}
.top-pick .casino-rank { background: var(--accent); }
.casino-main { flex: 1; }
.casino-badge {
  display: inline-block;
  background: var(--dark);
  color: #fff;
  font-size: .72rem;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 20px;
  text-transform: uppercase;
  letter-spacing: .04em;
  margin-bottom: 8px;
}
.top-pick .casino-badge { background: var(--accent); }
.casino-name {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 6px;
}
.casino-license { font-size: .82rem; color: var(--muted); margin-bottom: 6px; }
.casino-bonus { font-size: .9rem; color: var(--text); margin-bottom: 10px; font-weight: 500; }
.casino-features {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.feature-tag {
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 3px 10px;
  font-size: .78rem;
  color: var(--text);
}
.casino-cta {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}
.casino-rating {
  font-size: .9rem;
  font-weight: 700;
  color: var(--dark);
}

/* ---- EEAT / AUTHOR ---- */
.eeat-section { padding: 64px 0; background: var(--bg); }
.author-box {
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 36px;
  display: flex;
  gap: 28px;
  align-items: flex-start;
}
.author-portrait {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid var(--accent);
  flex-shrink: 0;
}
.author-details h3 { font-size: 1.3rem; font-weight: 700; margin-bottom: 4px; }
.author-details .author-title { color: var(--accent); font-size: .9rem; font-weight: 500; margin-bottom: 12px; }
.author-details p { color: var(--muted); font-size: .95rem; margin-bottom: 16px; }
.expertise-tags { display: flex; flex-wrap: wrap; gap: 8px; }
.expertise-tag {
  background: var(--dark);
  color: #fff;
  border-radius: 4px;
  padding: 4px 12px;
  font-size: .78rem;
  font-weight: 600;
}

/* ---- REVIEWED BY ---- */
.reviewed-section { padding: 64px 0; background: var(--bg-alt); }
.reviewed-section h2 {
  font-size: clamp(1.4rem, 3vw, 2rem);
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 32px;
}
.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: 1px solid var(--border);
  border-radius: 12px;
  padding: 24px;
}
.reviewer-header { display: flex; align-items: center; gap: 14px; margin-bottom: 14px; }
.reviewer-img {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--accent);
  flex-shrink: 0;
}
.reviewer-name { font-weight: 700; font-size: .95rem; }
.reviewer-title { color: var(--muted); font-size: .8rem; }
.reviewer-date { color: var(--muted); font-size: .78rem; margin-bottom: 8px; }
.reviewer-stars { color: #fbbf24; font-size: 1rem; margin-bottom: 10px; }
.reviewer-quote { color: var(--text); font-size: .88rem; font-style: italic; }

/* ---- FAQ ---- */
.faq-section { padding: 64px 0; }
.faq-section h2 {
  font-size: clamp(1.4rem, 3vw, 2rem);
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 32px;
}
.faq-item {
  border-bottom: 1px solid var(--border);
}
.faq-question {
  width: 100%;
  background: none;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 0;
  font-size: 1rem;
  font-weight: 600;
  color: var(--dark);
  text-align: left;
  gap: 12px;
}
.faq-question .faq-icon { color: var(--accent); font-size: 1.3rem; transition: transform .3s; flex-shrink: 0; }
.faq-item.open .faq-icon { transform: rotate(45deg); }
.faq-answer {
  display: none;
  padding: 0 0 18px;
  color: var(--muted);
  font-size: .95rem;
  line-height: 1.7;
}
.faq-item.open .faq-answer { display: block; }

/* ---- FOOTER ---- */
.site-footer {
  background: var(--dark);
  color: #94a3b8;
  padding: 48px 0 32px;
}
.footer-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 20px;
}
.footer-logo {
  color: #fff;
  font-size: 1.15rem;
  font-weight: 700;
  text-decoration: none;
  margin-bottom: 20px;
  display: block;
}
.footer-logo span { color: var(--accent); }
.footer-disclaimer {
  font-size: .82rem;
  line-height: 1.7;
  margin-bottom: 24px;
  max-width: 760px;
}
.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  margin-bottom: 20px;
  list-style: none;
}
.footer-links a { color: #94a3b8; text-decoration: none; font-size: .85rem; }
.footer-links a:hover { color: #fff; }
.footer-copy { font-size: .78rem; color: #64748b; border-top: 1px solid rgba(255,255,255,.08); padding-top: 20px; }
.age-badge {
  display: inline-block;
  background: var(--accent);
  color: #fff;
  font-weight: 800;
  font-size: .9rem;
  padding: 2px 10px;
  border-radius: 4px;
  margin-right: 6px;
}

/* ---- STICKY CTA ---- */
.sticky-cta {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 999;
  background: var(--dark2);
  padding: 12px 20px;
  border-top: 2px solid var(--accent);
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}
.sticky-cta.visible { display: flex; }
.sticky-cta-text { color: #f1f5f9; font-size: .9rem; font-weight: 600; }
.sticky-cta .btn-primary { padding: 10px 20px; font-size: .9rem; animation: none; }

/* ---- POPUP ---- */
.popup-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.7);
  z-index: 10000;
  align-items: center;
  justify-content: center;
}
.popup-overlay.open { display: flex; }
.popup-box {
  background: #fff;
  border-radius: 16px;
  padding: 40px;
  max-width: 480px;
  width: 90%;
  text-align: center;
  position: relative;
}
.popup-close {
  position: absolute;
  top: 14px;
  right: 18px;
  background: none;
  border: none;
  font-size: 1.4rem;
  cursor: pointer;
  color: var(--muted);
}
.popup-box h3 { font-size: 1.5rem; font-weight: 800; margin-bottom: 12px; color: var(--dark); }
.popup-box p { color: var(--muted); margin-bottom: 24px; }

/* ---- UTILITIES ---- */
.section-intro {
  font-size: 1.05rem;
  color: var(--muted);
  margin-bottom: 32px;
  max-width: 720px;
}
.text-accent { color: var(--accent); }
.text-center { text-align: center; }

/* ---- RESPONSIVE ---- */
@media (max-width: 768px) {
  .desktop-nav { display: none; }
  .hamburger { display: flex; }
  .hero { padding: 48px 0 40px; }
  .hero-stats { gap: 20px; }
  .author-box { flex-direction: column; align-items: center; text-align: center; }
  .expertise-tags { justify-content: center; }
  .casino-card { flex-direction: column; }
  .casino-cta { flex-direction: row; width: 100%; justify-content: space-between; align-items: center; }
  .sticky-cta { flex-direction: column; text-align: center; }
  .h2-banner-wrap { width: calc(100% + 40px); margin-left: -20px; }
}

@media (max-width: 480px) {
  .hero h1 { font-size: 1.6rem; }
  .content-section { padding: 48px 0; }
  .vitrina-section { padding: 48px 0; }
}
