/* ===== CSS Variables ===== */
:root {
  --color-primary: #1a3a4a;
  --color-primary-dark: #0f2833;
  --color-primary-light: #245368;
  --color-accent: #e8a230;
  --color-accent-hover: #d4912a;
  --color-teal: #2a8a8a;
  --color-teal-light: #35a5a5;
  --color-bg: #f4f6f8;
  --color-bg-alt: #eaeff3;
  --color-white: #ffffff;
  --color-text: #2c3e50;
  --color-text-light: #5a6d7e;
  --color-text-muted: #8899a6;
  --color-border: #d1dbe4;
  --color-success: #27ae60;
  --color-warning: #e67e22;
  --color-danger: #c0392b;
  --color-star: #f1c40f;
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.08);
  --shadow-md: 0 4px 12px rgba(0,0,0,0.1);
  --shadow-lg: 0 8px 30px rgba(0,0,0,0.12);
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --font-heading: 'Barlow', sans-serif;
  --font-body: 'Barlow', sans-serif;
  --max-width: 1100px;
  --header-height: 64px;
}

/* ===== Reset & Base ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; scroll-padding-top: 80px; }

body {
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.7;
  color: var(--color-text);
  background: var(--color-bg);
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--color-teal); text-decoration: none; transition: color 0.2s; }
a:hover { color: var(--color-teal-light); }

/* ===== Typography ===== */
h1, h2, h3, h4, h5 {
  font-family: var(--font-heading);
  font-weight: 700;
  color: var(--color-primary);
  line-height: 1.25;
}
h1 { font-size: 2.2rem; margin-bottom: 0.6em; }
h2 { font-size: 1.65rem; margin-top: 2em; margin-bottom: 0.5em; }
h3 { font-size: 1.3rem; margin-top: 1.5em; margin-bottom: 0.4em; }
h4 { font-size: 1.1rem; margin-top: 1.2em; margin-bottom: 0.3em; }
p { margin-bottom: 1em; }
ul, ol { margin-bottom: 1em; padding-left: 1.5em; }
li { margin-bottom: 0.3em; }

/* ===== Header ===== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: var(--color-primary-dark);
  box-shadow: var(--shadow-md);
  height: var(--header-height);
}
.header-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}
.site-logo {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--color-white);
  letter-spacing: -0.5px;
}
.site-logo span { color: var(--color-accent); }

/* Desktop Nav */
.nav-desktop { display: flex; gap: 0.3rem; align-items: center; }
.nav-desktop a {
  color: rgba(255,255,255,0.85);
  font-size: 0.92rem;
  font-weight: 500;
  padding: 0.45rem 0.75rem;
  border-radius: var(--radius-sm);
  transition: background 0.2s, color 0.2s;
}
.nav-desktop a:hover { background: rgba(255,255,255,0.1); color: #fff; }
.nav-cta {
  background: var(--color-accent) !important;
  color: var(--color-primary-dark) !important;
  font-weight: 700 !important;
  padding: 0.5rem 1.1rem !important;
}
.nav-cta:hover { background: var(--color-accent-hover) !important; }

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  background: none;
  border: none;
  padding: 8px;
}
.hamburger span {
  width: 24px;
  height: 2.5px;
  background: var(--color-white);
  border-radius: 2px;
  transition: transform 0.3s, opacity 0.3s;
}

/* Mobile Drawer */
.mobile-nav {
  display: none;
  position: fixed;
  top: var(--header-height);
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--color-primary-dark);
  z-index: 999;
  flex-direction: column;
  padding: 1.5rem;
  overflow-y: auto;
}
.mobile-nav.open { display: flex; }
.mobile-nav a {
  color: rgba(255,255,255,0.9);
  font-size: 1.1rem;
  padding: 0.85rem 0;
  border-bottom: 1px solid rgba(255,255,255,0.08);
  font-weight: 500;
}
.mobile-nav a:hover { color: var(--color-accent); }
.mobile-nav .nav-cta-mobile {
  margin-top: 1rem;
  background: var(--color-accent);
  color: var(--color-primary-dark);
  text-align: center;
  border-radius: var(--radius-md);
  font-weight: 700;
  padding: 0.9rem;
  border-bottom: none;
}

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

/* ===== Main Content ===== */
.page-content {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 2rem 1.5rem 3rem;
}

/* Breadcrumbs */
.breadcrumbs {
  font-size: 0.85rem;
  color: var(--color-text-muted);
  margin-bottom: 1.5rem;
}
.breadcrumbs a { color: var(--color-teal); }
.breadcrumbs span { margin: 0 0.4em; }

/* ===== Quick Verdict Box ===== */
.verdict-box {
  background: var(--color-white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  padding: 1.8rem;
  margin: 1.5rem 0 2rem;
  border-left: 5px solid var(--color-accent);
}
.verdict-box h3 { margin-top: 0; color: var(--color-primary); }
.verdict-rating {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 1rem;
}
.verdict-stars { color: var(--color-star); font-size: 1.3rem; letter-spacing: 2px; }
.verdict-score {
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--color-primary);
}
.pros-cons {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  margin: 1rem 0;
}
.pros h4, .cons h4 { font-size: 0.95rem; text-transform: uppercase; letter-spacing: 0.5px; margin-bottom: 0.5em; margin-top: 0; }
.pros h4 { color: var(--color-success); }
.cons h4 { color: var(--color-danger); }
.pros li, .cons li { font-size: 0.95rem; margin-bottom: 0.3em; }
.pros li::marker { color: var(--color-success); }
.cons li::marker { color: var(--color-danger); }

@media (max-width: 600px) {
  .pros-cons { grid-template-columns: 1fr; gap: 1rem; }
}

/* ===== CTA Buttons ===== */
.cta-btn {
  display: inline-block;
  background: var(--color-accent);
  color: var(--color-primary-dark);
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.1rem;
  padding: 0.85rem 2.2rem;
  border-radius: var(--radius-md);
  text-align: center;
  transition: background 0.2s, transform 0.15s;
  box-shadow: var(--shadow-sm);
  border: none;
  cursor: pointer;
}
.cta-btn:hover { background: var(--color-accent-hover); transform: translateY(-1px); color: var(--color-primary-dark); }

.cta-block {
  text-align: center;
  margin: 2rem 0;
  padding: 1.5rem;
  background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-light) 100%);
  border-radius: var(--radius-lg);
}
.cta-block p { color: rgba(255,255,255,0.9); margin-bottom: 1rem; font-size: 1.05rem; }

/* ===== Promo Code Box ===== */
.promo-box {
  background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-light) 100%);
  border-radius: var(--radius-md);
  padding: 1.2rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin: 1.5rem 0;
  flex-wrap: wrap;
}
.promo-box-label {
  color: rgba(255,255,255,0.8);
  font-size: 0.85rem;
  font-weight: 500;
}
.promo-box-code {
  font-family: var(--font-heading);
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--color-accent);
  letter-spacing: 2px;
}
.promo-copy-btn {
  background: var(--color-accent);
  color: var(--color-primary-dark);
  border: none;
  padding: 0.5rem 1rem;
  border-radius: var(--radius-sm);
  font-weight: 700;
  font-size: 0.85rem;
  cursor: pointer;
  transition: background 0.2s;
  font-family: var(--font-body);
}
.promo-copy-btn:hover { background: var(--color-accent-hover); }

/* ===== Content Cards ===== */
.content-card {
  background: var(--color-white);
  border-radius: var(--radius-md);
  padding: 1.8rem;
  margin: 1.5rem 0;
  box-shadow: var(--shadow-sm);
}

/* ===== Info Table ===== */
.info-table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.5rem 0;
  font-size: 0.95rem;
  background: var(--color-white);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}
.info-table th, .info-table td {
  padding: 0.75rem 1rem;
  text-align: left;
  border-bottom: 1px solid var(--color-border);
}
.info-table th {
  background: var(--color-primary);
  color: var(--color-white);
  font-weight: 600;
  font-size: 0.88rem;
  text-transform: uppercase;
  letter-spacing: 0.3px;
}
.info-table tr:last-child td { border-bottom: none; }
.info-table tr:nth-child(even) td { background: var(--color-bg); }
.info-table td:first-child { font-weight: 600; }

@media (max-width: 600px) {
  .info-table { font-size: 0.85rem; }
  .info-table th, .info-table td { padding: 0.6rem 0.7rem; }
}

/* ===== Bonus Steps ===== */
.step-list { counter-reset: steps; list-style: none; padding-left: 0; }
.step-list li {
  counter-increment: steps;
  position: relative;
  padding-left: 3.5rem;
  margin-bottom: 1.2rem;
  min-height: 2.5rem;
}
.step-list li::before {
  content: counter(steps);
  position: absolute;
  left: 0;
  top: 0;
  width: 2.5rem;
  height: 2.5rem;
  background: var(--color-primary);
  color: var(--color-white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1rem;
}

/* ===== FAQ ===== */
.faq-section { margin-top: 2.5rem; }
.faq-item {
  background: var(--color-white);
  border-radius: var(--radius-md);
  margin-bottom: 0.75rem;
  box-shadow: var(--shadow-sm);
  overflow: hidden;
}
.faq-question {
  width: 100%;
  background: none;
  border: none;
  padding: 1.1rem 1.3rem;
  font-size: 1.02rem;
  font-weight: 600;
  color: var(--color-primary);
  text-align: left;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: var(--font-body);
  transition: background 0.2s;
}
.faq-question:hover { background: var(--color-bg); }
.faq-question::after {
  content: '+';
  font-size: 1.4rem;
  font-weight: 300;
  color: var(--color-teal);
  transition: transform 0.3s;
  flex-shrink: 0;
  margin-left: 1rem;
}
.faq-item.open .faq-question::after {
  content: '−';
}
.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease, padding 0.35s ease;
}
.faq-item.open .faq-answer {
  max-height: 500px;
  padding: 0 1.3rem 1.1rem;
}
.faq-answer p { font-size: 0.95rem; color: var(--color-text-light); }

/* ===== Screenshot Images ===== */
.screenshot {
  display: block;
  margin: 1.5rem auto;
  border-radius: 8px;
  box-shadow: var(--shadow-md);
}
.screenshot-desktop { width: 90%; height: auto; }
.screenshot-mobile { width: 50%; max-width: 300px; height: auto; }
figure { margin: 1.5rem 0; }
figcaption {
  text-align: center;
  font-size: 0.85rem;
  color: var(--color-text-muted);
  margin-top: 0.6rem;
  font-style: italic;
}

@media (max-width: 600px) {
  .screenshot-desktop, .screenshot-mobile { width: 100%; max-width: 100%; }
}

/* ===== Footer ===== */
.site-footer {
  background: var(--color-primary-dark);
  color: rgba(255,255,255,0.7);
  padding: 2.5rem 1.5rem 1.5rem;
  margin-top: 3rem;
}
.footer-inner {
  max-width: var(--max-width);
  margin: 0 auto;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  margin-bottom: 2rem;
}
.footer-about p { font-size: 0.9rem; line-height: 1.6; }
.footer-links h4, .footer-legal h4 {
  color: var(--color-white);
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 0.8rem;
  margin-top: 0;
}
.footer-links a, .footer-legal a {
  display: block;
  color: rgba(255,255,255,0.65);
  font-size: 0.9rem;
  padding: 0.25rem 0;
}
.footer-links a:hover, .footer-legal a:hover { color: var(--color-accent); }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 1.2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.8rem;
}
.footer-bottom p { font-size: 0.82rem; margin: 0; }
.age-badge {
  background: var(--color-danger);
  color: #fff;
  font-weight: 800;
  font-size: 0.85rem;
  padding: 0.3rem 0.7rem;
  border-radius: var(--radius-sm);
}
.footer-disclaimer {
  font-size: 0.8rem;
  color: rgba(255,255,255,0.45);
  margin-top: 0.8rem;
  line-height: 1.5;
}

@media (max-width: 700px) {
  .footer-grid { grid-template-columns: 1fr; gap: 1.5rem; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
  h1 { font-size: 1.7rem; }
  h2 { font-size: 1.4rem; }
}

/* ===== 404 Page ===== */
.page-404 {
  text-align: center;
  padding: 4rem 1.5rem;
}
.page-404 h1 { font-size: 5rem; color: var(--color-accent); margin-bottom: 0.2em; }
.page-404 p { font-size: 1.1rem; color: var(--color-text-light); margin-bottom: 2rem; }

/* ===== Trust / E-E-A-T Page Styles ===== */
.trust-page h1 { border-bottom: 3px solid var(--color-accent); padding-bottom: 0.5em; display: inline-block; }
.trust-page h2 { color: var(--color-primary-light); }

/* ===== Related Pages Cards ===== */
.related-pages { margin-top: 3rem; }
.related-pages h2 { font-size: 1.4rem; margin-bottom: 1rem; }
.related-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}
.related-card {
  background: var(--color-white);
  border-radius: var(--radius-md);
  padding: 1.3rem;
  box-shadow: var(--shadow-sm);
  transition: transform 0.2s, box-shadow 0.2s;
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: inherit;
  border: 2px solid transparent;
}
.related-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
  border-color: var(--color-accent);
  color: inherit;
}
.related-card-icon {
  font-size: 1.8rem;
  margin-bottom: 0.5rem;
}
.related-card h3 {
  font-size: 1rem;
  margin: 0 0 0.4rem;
  color: var(--color-primary);
}
.related-card p {
  font-size: 0.85rem;
  color: var(--color-text-light);
  margin: 0;
  line-height: 1.45;
}
@media (max-width: 700px) {
  .related-grid { grid-template-columns: 1fr; }
}

/* ===== Scroll to Top ===== */
.scroll-top {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  width: 44px;
  height: 44px;
  background: var(--color-primary);
  color: var(--color-white);
  border: none;
  border-radius: 50%;
  font-size: 1.3rem;
  cursor: pointer;
  box-shadow: var(--shadow-md);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s, visibility 0.3s, background 0.2s;
  z-index: 900;
  display: flex;
  align-items: center;
  justify-content: center;
}
.scroll-top.visible { opacity: 1; visibility: visible; }
.scroll-top:hover { background: var(--color-teal); }

/* ===== Bonus Calculator ===== */
.bonus-calc {
  background: var(--color-white);
  border-radius: var(--radius-lg);
  padding: 1.8rem;
  box-shadow: var(--shadow-md);
  margin: 2rem 0;
  border: 2px solid var(--color-border);
}
.bonus-calc h3 { margin-top: 0; color: var(--color-primary); font-size: 1.2rem; }
.calc-row {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin: 1rem 0;
  flex-wrap: wrap;
}
.calc-row label {
  font-weight: 600;
  font-size: 0.95rem;
  min-width: 160px;
  color: var(--color-text);
}
.calc-input {
  flex: 1;
  min-width: 120px;
  padding: 0.6rem 0.9rem;
  border: 2px solid var(--color-border);
  border-radius: var(--radius-sm);
  font-size: 1rem;
  font-family: var(--font-body);
  transition: border-color 0.2s;
  color: var(--color-text);
  background: var(--color-bg);
}
.calc-input:focus { outline: none; border-color: var(--color-teal); background: var(--color-white); }
.calc-select {
  padding: 0.6rem 0.9rem;
  border: 2px solid var(--color-border);
  border-radius: var(--radius-sm);
  font-size: 1rem;
  font-family: var(--font-body);
  background: var(--color-bg);
  color: var(--color-text);
  cursor: pointer;
}
.calc-result {
  background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-light) 100%);
  border-radius: var(--radius-md);
  padding: 1.2rem 1.5rem;
  margin-top: 1rem;
  color: var(--color-white);
}
.calc-result-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.4rem 0;
  font-size: 0.95rem;
}
.calc-result-row:not(:last-child) { border-bottom: 1px solid rgba(255,255,255,0.15); }
.calc-result-value { font-weight: 700; font-size: 1.1rem; color: var(--color-accent); }
.calc-result-big {
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--color-accent);
}

/* ===== Animated Rating ===== */
.rating-bar {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin: 1rem 0;
}
.rating-fill-track {
  flex: 1;
  height: 10px;
  background: var(--color-bg-alt);
  border-radius: 5px;
  overflow: hidden;
  max-width: 200px;
}
.rating-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--color-accent) 0%, var(--color-star) 100%);
  border-radius: 5px;
  width: 0;
  transition: width 1s ease-out;
}
.rating-label {
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--color-text);
  min-width: 100px;
}
.rating-value {
  font-weight: 800;
  font-size: 1rem;
  color: var(--color-primary);
  min-width: 50px;
  text-align: right;
}

/* ===== Tooltip ===== */
.tooltip-trigger {
  position: relative;
  border-bottom: 1px dashed var(--color-teal);
  cursor: help;
}
.tooltip-trigger .tooltip-text {
  position: absolute;
  bottom: calc(100% + 8px);
  left: 50%;
  transform: translateX(-50%);
  background: var(--color-primary-dark);
  color: var(--color-white);
  font-size: 0.82rem;
  font-weight: 400;
  padding: 0.6rem 0.9rem;
  border-radius: var(--radius-sm);
  white-space: nowrap;
  max-width: 280px;
  white-space: normal;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.2s, visibility 0.2s;
  z-index: 100;
  line-height: 1.4;
  pointer-events: none;
  box-shadow: var(--shadow-md);
}
.tooltip-trigger .tooltip-text::after {
  content: '';
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  border: 6px solid transparent;
  border-top-color: var(--color-primary-dark);
}
.tooltip-trigger:hover .tooltip-text { opacity: 1; visibility: visible; }

/* ===== Quick-Nav Tabs ===== */
.quick-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 1.5rem 0;
  padding: 1rem;
  background: var(--color-white);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
}
.quick-nav-label {
  font-weight: 700;
  color: var(--color-primary);
  font-size: 0.9rem;
  display: flex;
  align-items: center;
  margin-right: 0.3rem;
}
.quick-nav a {
  display: inline-block;
  padding: 0.35rem 0.8rem;
  background: var(--color-bg);
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--color-text);
  transition: background 0.2s, color 0.2s;
}
.quick-nav a:hover { background: var(--color-accent); color: var(--color-primary-dark); }

/* ===== Progress Bar (for wagering) ===== */
.progress-visual {
  margin: 1rem 0;
}
.progress-track {
  width: 100%;
  height: 24px;
  background: var(--color-bg-alt);
  border-radius: 12px;
  overflow: hidden;
  position: relative;
}
.progress-fill {
  height: 100%;
  border-radius: 12px;
  background: linear-gradient(90deg, var(--color-teal), var(--color-accent));
  display: flex;
  align-items: center;
  justify-content: flex-end;
  padding-right: 8px;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--color-primary-dark);
  transition: width 1.2s ease-out;
}

/* ===== Utility ===== */
.text-center { text-align: center; }
.mt-1 { margin-top: 1rem; }
.mt-2 { margin-top: 2rem; }
.mb-1 { margin-bottom: 1rem; }
.mb-2 { margin-bottom: 2rem; }
