/* ===== Coldbet Affiliate Site — Global Styles ===== */
@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700;800&family=DM+Sans:ital,wght@0,400;0,500;0,700;1,400&display=swap');

:root {
  /* Brand Palette — extracted from Coldbet screenshots */
  --clr-bg-dark: #0e1c2f;
  --clr-bg-card: #142236;
  --clr-bg-card-hover: #1a2d47;
  --clr-primary: #e8a230;
  --clr-primary-hover: #f0b44a;
  --clr-accent: #2ec4d4;
  --clr-accent-dim: #1a8a96;
  --clr-text: #e4e8ed;
  --clr-text-muted: #94a3b8;
  --clr-text-dark: #0e1c2f;
  --clr-border: rgba(255,255,255,0.08);
  --clr-success: #34d399;
  --clr-warning: #fbbf24;
  --clr-white: #ffffff;
  --clr-overlay: rgba(14,28,47,0.92);

  /* Typography */
  --ff-heading: 'Outfit', sans-serif;
  --ff-body: 'DM Sans', sans-serif;

  /* Sizing */
  --container: 1140px;
  --radius: 8px;
  --radius-lg: 14px;
  --shadow-card: 0 4px 24px rgba(0,0,0,0.25);
  --shadow-btn: 0 4px 16px rgba(232,162,48,0.35);
  --transition: 0.25s ease;
}

/* ===== Reset & Base ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--ff-body);
  background: var(--clr-bg-dark);
  color: var(--clr-text);
  line-height: 1.7;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--clr-accent); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--clr-primary); }
img { max-width: 100%; height: auto; display: block; }
h1, h2, h3, h4, h5, h6 { font-family: var(--ff-heading); font-weight: 700; line-height: 1.25; color: var(--clr-white); }
h1 { font-size: 2.4rem; margin-bottom: 1rem; }
h2 { font-size: 1.75rem; margin-top: 2.2rem; margin-bottom: 0.9rem; }
h3 { font-size: 1.3rem; margin-top: 1.6rem; margin-bottom: 0.7rem; }
p { margin-bottom: 1rem; }
ul, ol { margin-bottom: 1rem; padding-left: 1.5rem; }
li { margin-bottom: 0.4rem; }
table { width: 100%; border-collapse: collapse; margin-bottom: 1.5rem; }
th, td { padding: 0.75rem 1rem; text-align: left; border-bottom: 1px solid var(--clr-border); }
th { background: var(--clr-bg-card); color: var(--clr-primary); font-family: var(--ff-heading); font-weight: 600; }
td { color: var(--clr-text); }
tr:hover td { background: rgba(255,255,255,0.02); }

/* ===== Container ===== */
.container { max-width: var(--container); margin: 0 auto; padding: 0 1.25rem; }

/* ===== Header ===== */
.site-header {
  position: sticky; top: 0; z-index: 1000;
  background: var(--clr-overlay);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--clr-border);
  transition: box-shadow var(--transition);
}
.site-header.scrolled { box-shadow: 0 2px 20px rgba(0,0,0,0.4); }
.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  padding: 0.8rem 0; max-width: var(--container); margin: 0 auto; padding-left: 1.25rem; padding-right: 1.25rem;
}
.logo { display: flex; align-items: center; gap: 0.6rem; font-family: var(--ff-heading); font-weight: 800; font-size: 1.4rem; color: var(--clr-white); }
.logo img { width: 36px; height: 36px; border-radius: 6px; }
.logo span { color: var(--clr-primary); }

/* Desktop Nav */
.nav-links { display: flex; gap: 1.5rem; list-style: none; align-items: center; }
.nav-links a { color: var(--clr-text-muted); font-weight: 500; font-size: 0.95rem; transition: color var(--transition); }
.nav-links a:hover, .nav-links a.active { color: var(--clr-primary); }

/* Hamburger */
.hamburger { display: none; flex-direction: column; gap: 5px; cursor: pointer; background: none; border: none; padding: 6px; }
.hamburger span { display: block; width: 26px; height: 2.5px; background: var(--clr-text); border-radius: 2px; transition: var(--transition); }

/* Mobile Nav */
.mobile-nav {
  display: none; position: fixed; top: 0; left: 0; width: 100%; height: 100%;
  background: var(--clr-overlay); z-index: 2000;
  flex-direction: column; align-items: center; justify-content: center; gap: 1.5rem;
}
.mobile-nav.open { display: flex; }
.mobile-nav a { font-family: var(--ff-heading); font-size: 1.3rem; color: var(--clr-text); font-weight: 600; }
.mobile-nav a:hover { color: var(--clr-primary); }
.mobile-nav .close-btn { position: absolute; top: 1.2rem; right: 1.5rem; background: none; border: none; color: var(--clr-text); font-size: 2rem; cursor: pointer; }

/* ===== CTA Buttons ===== */
.btn-cta {
  display: inline-block;
  padding: 0.9rem 2.2rem;
  background: linear-gradient(135deg, var(--clr-primary), #d4911a);
  color: var(--clr-text-dark);
  font-family: var(--ff-heading);
  font-weight: 700;
  font-size: 1.05rem;
  border-radius: var(--radius);
  box-shadow: var(--shadow-btn);
  transition: transform var(--transition), box-shadow var(--transition);
  text-align: center;
  cursor: pointer;
  border: none;
}
.btn-cta:hover { transform: translateY(-2px); box-shadow: 0 6px 24px rgba(232,162,48,0.5); color: var(--clr-text-dark); }

/* ===== Hero Section ===== */
.hero {
  background: linear-gradient(135deg, var(--clr-bg-dark) 0%, #1a3050 50%, var(--clr-bg-dark) 100%);
  padding: 3.5rem 0 3rem;
  border-bottom: 1px solid var(--clr-border);
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: ''; position: absolute; top: -50%; right: -20%; width: 600px; height: 600px;
  background: radial-gradient(circle, rgba(232,162,48,0.08) 0%, transparent 70%);
  pointer-events: none;
}
.hero h1 { font-size: 2.6rem; margin-bottom: 0.8rem; }
.hero p { font-size: 1.1rem; color: var(--clr-text-muted); max-width: 650px; }
.hero .btn-cta { margin-top: 1.2rem; }

/* ===== Quick Verdict Box ===== */
.verdict-box {
  background: var(--clr-bg-card);
  border: 1px solid var(--clr-border);
  border-left: 4px solid var(--clr-primary);
  border-radius: var(--radius-lg);
  padding: 1.8rem 2rem;
  margin: 2rem 0;
}
.verdict-box h3 { color: var(--clr-primary); margin-top: 0; }
.verdict-rating { font-size: 2.5rem; font-weight: 800; font-family: var(--ff-heading); color: var(--clr-primary); }
.verdict-stars { color: var(--clr-primary); font-size: 1.3rem; letter-spacing: 2px; margin-bottom: 0.5rem; }
.pros-cons { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; margin-top: 1rem; }
.pros h4 { color: var(--clr-success); }
.cons h4 { color: #f87171; }
.pros li::marker { color: var(--clr-success); }
.cons li::marker { color: #f87171; }

/* ===== Content Cards ===== */
.info-card {
  background: var(--clr-bg-card);
  border: 1px solid var(--clr-border);
  border-radius: var(--radius-lg);
  padding: 1.8rem;
  margin-bottom: 1.5rem;
  transition: border-color var(--transition);
}
.info-card:hover { border-color: rgba(232,162,48,0.2); }
.info-card h3 { margin-top: 0; }

/* ===== Promo Code Box ===== */
.promo-box {
  background: linear-gradient(135deg, var(--clr-bg-card), #1a2d47);
  border: 2px dashed var(--clr-primary);
  border-radius: var(--radius-lg);
  padding: 1.5rem 2rem;
  text-align: center;
  margin: 1.5rem 0;
}
.promo-code-display {
  display: inline-flex; align-items: center; gap: 0.8rem;
  background: rgba(232,162,48,0.12); border: 1px solid var(--clr-primary);
  border-radius: var(--radius); padding: 0.7rem 1.4rem; margin: 0.8rem 0;
  font-family: var(--ff-heading); font-weight: 700; font-size: 1.4rem; color: var(--clr-primary);
  letter-spacing: 2px;
}
.copy-btn {
  background: var(--clr-primary); color: var(--clr-text-dark);
  border: none; border-radius: 4px; padding: 0.35rem 0.7rem;
  cursor: pointer; font-size: 0.8rem; font-weight: 600;
  transition: background var(--transition);
}
.copy-btn:hover { background: var(--clr-primary-hover); }

/* ===== Bonus Table ===== */
.bonus-table { overflow-x: auto; }
.bonus-table table { min-width: 500px; }
.bonus-table th { background: linear-gradient(135deg, var(--clr-bg-card), #1a3050); }

/* ===== Steps ===== */
.steps { counter-reset: step; margin: 1.5rem 0; }
.step-item {
  display: flex; gap: 1.2rem; margin-bottom: 1.5rem; align-items: flex-start;
  padding: 1.2rem; background: var(--clr-bg-card); border-radius: var(--radius-lg);
  border: 1px solid var(--clr-border);
}
.step-num {
  flex-shrink: 0; width: 44px; height: 44px;
  background: linear-gradient(135deg, var(--clr-primary), #d4911a);
  border-radius: 50%; display: flex; align-items: center; justify-content: center;
  font-family: var(--ff-heading); font-weight: 800; font-size: 1.1rem; color: var(--clr-text-dark);
}
.step-item p { margin-bottom: 0; }

/* ===== FAQ ===== */
.faq-item { border-bottom: 1px solid var(--clr-border); }
.faq-question {
  display: flex; justify-content: space-between; align-items: center;
  padding: 1.1rem 0; cursor: pointer; font-family: var(--ff-heading);
  font-weight: 600; font-size: 1.05rem; color: var(--clr-white);
  background: none; border: none; width: 100%; text-align: left;
}
.faq-question:hover { color: var(--clr-primary); }
.faq-arrow { transition: transform var(--transition); font-size: 1.2rem; color: var(--clr-primary); flex-shrink: 0; margin-left: 1rem; }
.faq-item.open .faq-arrow { transform: rotate(180deg); }
.faq-answer { max-height: 0; overflow: hidden; transition: max-height 0.4s ease, padding 0.3s ease; }
.faq-item.open .faq-answer { max-height: 500px; padding-bottom: 1rem; }
.faq-answer p { color: var(--clr-text-muted); }

/* ===== Image Figures ===== */
.content-img {
  margin: 1.5rem auto; text-align: center;
}
.content-img img {
  width: 90%; height: auto; border-radius: var(--radius);
  box-shadow: 0 4px 20px rgba(0,0,0,0.3); display: block; margin: 0 auto;
}
.content-img.mobile-screenshot img { width: 50%; max-width: 300px; }
.content-img figcaption {
  font-size: 0.85rem; color: var(--clr-text-muted); margin-top: 0.6rem; font-style: italic;
}

/* ===== Breadcrumbs ===== */
.breadcrumbs {
  padding: 0.8rem 0; font-size: 0.85rem; color: var(--clr-text-muted);
}
.breadcrumbs a { color: var(--clr-text-muted); }
.breadcrumbs a:hover { color: var(--clr-primary); }
.breadcrumbs span { margin: 0 0.4rem; }

/* ===== Footer ===== */
.site-footer {
  background: #0a1520;
  border-top: 1px solid var(--clr-border);
  padding: 3rem 0 1.5rem;
  margin-top: 3rem;
}
.footer-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 2rem; margin-bottom: 2rem;
}
.footer-col h4 { font-size: 1rem; color: var(--clr-primary); margin-bottom: 0.8rem; }
.footer-col ul { list-style: none; padding: 0; }
.footer-col li { margin-bottom: 0.4rem; }
.footer-col a { color: var(--clr-text-muted); font-size: 0.9rem; }
.footer-col a:hover { color: var(--clr-primary); }
.footer-bottom {
  border-top: 1px solid var(--clr-border); padding-top: 1.5rem;
  display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center;
  gap: 1rem; font-size: 0.82rem; color: var(--clr-text-muted);
}
.age-badge {
  display: inline-flex; align-items: center; justify-content: center;
  width: 40px; height: 40px; border: 2px solid #f87171;
  border-radius: 50%; font-weight: 800; font-family: var(--ff-heading);
  color: #f87171; font-size: 0.85rem;
}

/* ===== Page Content Layout ===== */
.page-content { padding: 2rem 0 3rem; }
.page-content h1 { margin-bottom: 1.2rem; }

/* ===== 404 ===== */
.page-404 { text-align: center; padding: 5rem 0; }
.page-404 h1 { font-size: 5rem; color: var(--clr-primary); }

/* ===== Reading Progress Bar ===== */
.reading-progress {
  position: fixed; top: 0; left: 0; height: 3px; z-index: 1100;
  background: linear-gradient(90deg, var(--clr-primary), var(--clr-accent));
  width: 0%; transition: width 0.1s linear;
}

/* ===== Back to Top Button ===== */
.back-to-top {
  position: fixed; bottom: 2rem; right: 2rem; z-index: 900;
  width: 48px; height: 48px; border-radius: 50%;
  background: linear-gradient(135deg, var(--clr-primary), #d4911a);
  color: var(--clr-text-dark); border: none; cursor: pointer;
  font-size: 1.4rem; display: flex; align-items: center; justify-content: center;
  box-shadow: 0 4px 16px rgba(232,162,48,0.4);
  opacity: 0; transform: translateY(20px);
  transition: opacity 0.3s ease, transform 0.3s ease;
  pointer-events: none;
}
.back-to-top.visible { opacity: 1; transform: translateY(0); pointer-events: auto; }
.back-to-top:hover { transform: translateY(-3px); box-shadow: 0 6px 24px rgba(232,162,48,0.6); }

/* ===== Scroll Reveal Animations ===== */
.reveal {
  opacity: 0; transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.reveal.revealed { opacity: 1; transform: translateY(0); }
.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }

/* ===== Related Pages Grid ===== */
.related-pages {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1rem; margin: 2rem 0;
}
.related-card {
  display: block;
  background: var(--clr-bg-card);
  border: 1px solid var(--clr-border);
  border-radius: var(--radius-lg);
  padding: 1.3rem 1.5rem;
  transition: border-color var(--transition), transform var(--transition), box-shadow var(--transition);
}
.related-card:hover {
  border-color: rgba(232,162,48,0.3);
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.3);
  color: var(--clr-text);
}
.related-card .rc-icon { font-size: 1.6rem; margin-bottom: 0.5rem; display: block; }
.related-card .rc-title {
  font-family: var(--ff-heading); font-weight: 700; font-size: 1.05rem; color: var(--clr-white);
  margin-bottom: 0.3rem; display: block;
}
.related-card .rc-desc { font-size: 0.85rem; color: var(--clr-text-muted); line-height: 1.4; }

/* ===== Bonus Calculator ===== */
.calc-widget {
  background: var(--clr-bg-card);
  border: 1px solid var(--clr-border);
  border-radius: var(--radius-lg);
  padding: 1.8rem;
  margin: 2rem 0;
}
.calc-widget h3 { margin-top: 0; color: var(--clr-primary); }
.calc-row {
  display: flex; align-items: center; gap: 1rem; margin-bottom: 1rem; flex-wrap: wrap;
}
.calc-row label {
  font-family: var(--ff-heading); font-weight: 600; font-size: 0.95rem;
  min-width: 140px; color: var(--clr-text);
}
.calc-row input, .calc-row select {
  flex: 1; min-width: 120px; padding: 0.6rem 1rem;
  background: rgba(255,255,255,0.05); border: 1px solid var(--clr-border);
  border-radius: var(--radius); color: var(--clr-white);
  font-family: var(--ff-body); font-size: 1rem;
  transition: border-color var(--transition);
}
.calc-row input:focus, .calc-row select:focus {
  outline: none; border-color: var(--clr-primary);
}
.calc-row select option { background: var(--clr-bg-dark); color: var(--clr-text); }
.calc-result {
  background: rgba(232,162,48,0.08);
  border: 1px solid rgba(232,162,48,0.2);
  border-radius: var(--radius);
  padding: 1.2rem;
  margin-top: 1rem;
}
.calc-result-row {
  display: flex; justify-content: space-between; align-items: center;
  padding: 0.4rem 0; border-bottom: 1px solid var(--clr-border);
}
.calc-result-row:last-child { border-bottom: none; }
.calc-result-label { color: var(--clr-text-muted); font-size: 0.9rem; }
.calc-result-value { font-family: var(--ff-heading); font-weight: 700; color: var(--clr-primary); font-size: 1.1rem; }

/* ===== Image Lightbox ===== */
.lightbox-overlay {
  position: fixed; top: 0; left: 0; width: 100%; height: 100%;
  background: rgba(0,0,0,0.9); z-index: 3000;
  display: none; align-items: center; justify-content: center;
  cursor: zoom-out;
}
.lightbox-overlay.open { display: flex; }
.lightbox-overlay img {
  max-width: 95%; max-height: 90vh; border-radius: var(--radius);
  box-shadow: 0 8px 40px rgba(0,0,0,0.5);
}
.lightbox-close {
  position: absolute; top: 1rem; right: 1.5rem;
  background: none; border: none; color: white;
  font-size: 2.5rem; cursor: pointer; line-height: 1;
}
.content-img img { cursor: zoom-in; transition: transform 0.2s ease; }
.content-img img:hover { transform: scale(1.02); }

/* ===== Animated Counter ===== */
.stats-row {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 1rem; margin: 2rem 0; text-align: center;
}
.stat-item {
  background: var(--clr-bg-card); border: 1px solid var(--clr-border);
  border-radius: var(--radius-lg); padding: 1.5rem 1rem;
}
.stat-number {
  font-family: var(--ff-heading); font-weight: 800; font-size: 2rem;
  color: var(--clr-primary); display: block;
}
.stat-label { font-size: 0.85rem; color: var(--clr-text-muted); margin-top: 0.3rem; }

/* ===== Tabs ===== */
.tabs-nav {
  display: flex; gap: 0; border-bottom: 2px solid var(--clr-border);
  margin-bottom: 1.5rem; overflow-x: auto;
}
.tab-btn {
  background: none; border: none; border-bottom: 2px solid transparent;
  padding: 0.8rem 1.5rem; cursor: pointer;
  font-family: var(--ff-heading); font-weight: 600; font-size: 0.95rem;
  color: var(--clr-text-muted); transition: color var(--transition), border-color var(--transition);
  white-space: nowrap; margin-bottom: -2px;
}
.tab-btn:hover { color: var(--clr-text); }
.tab-btn.active { color: var(--clr-primary); border-bottom-color: var(--clr-primary); }
.tab-panel { display: none; }
.tab-panel.active { display: block; }

/* ===== Tooltip ===== */
.tooltip-trigger {
  position: relative; cursor: help;
  border-bottom: 1px dashed var(--clr-accent);
}
.tooltip-trigger .tooltip-text {
  visibility: hidden; opacity: 0;
  position: absolute; bottom: calc(100% + 8px); left: 50%;
  transform: translateX(-50%);
  background: var(--clr-bg-card); border: 1px solid var(--clr-primary);
  border-radius: var(--radius); padding: 0.6rem 0.9rem;
  font-size: 0.82rem; color: var(--clr-text); line-height: 1.4;
  width: 240px; text-align: center; z-index: 100;
  transition: opacity 0.2s ease, visibility 0.2s ease;
  pointer-events: none;
}
.tooltip-trigger:hover .tooltip-text { visibility: visible; opacity: 1; }

/* ===== Responsive ===== */
@media (max-width: 768px) {
  .nav-links { display: none; }
  .hamburger { display: flex; }
  h1 { font-size: 1.8rem; }
  h2 { font-size: 1.4rem; }
  .hero h1 { font-size: 2rem; }
  .hero { padding: 2.5rem 0 2rem; }
  .pros-cons { grid-template-columns: 1fr; }
  .verdict-box { padding: 1.3rem; }
  .content-img img { width: 100% !important; max-width: 100% !important; }
  .content-img.mobile-screenshot img { width: 70% !important; max-width: 100% !important; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-bottom { flex-direction: column; text-align: center; }
  .step-item { flex-direction: column; gap: 0.7rem; }
  .related-pages { grid-template-columns: 1fr; }
  .calc-row { flex-direction: column; gap: 0.5rem; }
  .calc-row label { min-width: auto; }
  .stats-row { grid-template-columns: repeat(2, 1fr); }
  .back-to-top { bottom: 1.2rem; right: 1.2rem; width: 42px; height: 42px; font-size: 1.2rem; }
  .tooltip-trigger .tooltip-text { width: 180px; }
}
@media (max-width: 480px) {
  .footer-grid { grid-template-columns: 1fr; }
  h1 { font-size: 1.5rem; }
  .hero h1 { font-size: 1.6rem; }
}
