/* ============================================================
   1xBet Info — magazine-style, mobile-first
   Brand: #017acc (blue) / #002f5f (navy)
   ============================================================ */
:root {
  --blue:       #017acc;
  --blue-dark:  #0165a8;
  --navy:       #002f5f;
  --white:      #ffffff;
  --surface:    #f4f8fc;
  --text:       #1a2742;
  --muted:      #6b7280;
  --border:     #e2e8f0;
  --radius:     8px;
  --shadow:     0 2px 10px rgba(0,47,95,.09);
  --font:       system-ui,-apple-system,"Segoe UI",Roboto,Helvetica,Arial,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(--white);
  line-height: 1.7;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--blue); text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; height: auto; display: block; }

/* ── HEADER ──────────────────────────────────────────────── */
.site-header {
  background: var(--white);
  border-bottom: 3px solid var(--blue);
  position: sticky;
  top: 0;
  z-index: 200;
  box-shadow: 0 1px 6px rgba(0,47,95,.1);
}
.header-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 62px;
}
.logo img { height: 38px; width: auto; }

.nav-toggle {
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  display: flex;
  flex-direction: column;
  gap: 5px;
}
.nav-toggle span {
  display: block;
  width: 26px;
  height: 2px;
  background: var(--navy);
  border-radius: 2px;
  transition: .25s;
}

.site-nav {
  display: none;
  position: absolute;
  top: 62px;
  left: 0;
  right: 0;
  background: var(--white);
  border-bottom: 1px solid var(--border);
  padding: 12px 16px 16px;
  box-shadow: 0 4px 12px rgba(0,0,0,.08);
}
.site-nav.open { display: block; }
.site-nav ul { list-style: none; display: flex; flex-direction: column; }
.site-nav a {
  display: block;
  padding: 11px 0;
  color: var(--text);
  font-weight: 500;
  font-size: 15px;
  border-bottom: 1px solid var(--border);
}
.site-nav li:last-child a { border-bottom: none; }
.site-nav a:hover, .site-nav a.active { color: var(--blue); text-decoration: none; }
.site-nav a.active { font-weight: 700; }

/* ── PAGE HERO ──────────────────────────────────────────── */
.page-hero {
  background: linear-gradient(135deg, var(--navy) 0%, var(--blue) 100%);
  color: var(--white);
  padding: 36px 16px 32px;
}
.breadcrumb {
  font-size: 13px;
  opacity: .75;
  margin-bottom: 10px;
}
.breadcrumb a { color: rgba(255,255,255,.85); }
.breadcrumb span { margin: 0 6px; }
.page-hero h1 {
  font-size: clamp(22px, 5vw, 40px);
  font-weight: 800;
  line-height: 1.2;
  max-width: 820px;
}
.hero-meta {
  margin-top: 10px;
  font-size: 13px;
  opacity: .75;
}

/* ── LAYOUT ─────────────────────────────────────────────── */
.container { max-width: 1200px; margin: 0 auto; padding: 0 16px; }
.site-main { padding: 32px 0 0; }
.content-wrap { display: grid; grid-template-columns: 1fr; gap: 40px; }

/* ── ARTICLE BODY ────────────────────────────────────────── */
.article-body { max-width: 820px; }
.article-body p { margin-bottom: 1em; }
.article-body h2 {
  font-size: clamp(18px, 3vw, 26px);
  font-weight: 800;
  margin: 2em 0 .6em;
  color: var(--navy);
  border-left: 4px solid var(--blue);
  padding-left: 14px;
}
.article-body h3 {
  font-size: clamp(16px, 2.5vw, 20px);
  font-weight: 700;
  margin: 1.5em 0 .5em;
  color: var(--navy);
}
.article-body ul, .article-body ol {
  padding-left: 22px;
  margin-bottom: 1em;
}
.article-body li { margin-bottom: .4em; }

/* Responsive images in article */
.article-body figure { margin: 24px 0; }
.article-body figure img {
  width: 100%;
  border-radius: var(--radius);
  border: 1px solid var(--border);
}
.article-body figcaption {
  font-size: 13px;
  color: var(--muted);
  text-align: center;
  margin-top: 6px;
}

/* Responsive tables in article */
.table-wrap {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  margin: 24px 0;
  border-radius: var(--radius);
  border: 1px solid var(--border);
}
.table-wrap table {
  width: 100%;
  min-width: 480px;
  border-collapse: collapse;
  font-size: 14px;
}
.table-wrap th {
  background: var(--navy);
  color: var(--white);
  padding: 10px 14px;
  text-align: left;
  font-weight: 600;
  white-space: nowrap;
}
.table-wrap td {
  padding: 9px 14px;
  border-bottom: 1px solid var(--border);
  vertical-align: top;
}
.table-wrap tr:last-child td { border-bottom: none; }
.table-wrap tr:nth-child(even) td { background: var(--surface); }

/* ── MIRROR CHECK ────────────────────────────────────────── */
.mirror-status {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: #ecfdf5;
  border: 1px solid #6ee7b7;
  border-radius: 50px;
  padding: 8px 18px;
  font-size: 14px;
  font-weight: 600;
  color: #065f46;
  margin: 16px 0 20px;
}
.mirror-status::before {
  content: '';
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #10b981;
  flex-shrink: 0;
  animation: blink 1.8s ease-in-out infinite;
}
@keyframes blink { 0%,100% { opacity: 1; } 50% { opacity: .35; } }

/* ── CTA BUTTON ─────────────────────────────────────────── */
.btn-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: var(--blue);
  color: var(--white);
  font-weight: 700;
  font-size: 16px;
  padding: 14px 32px;
  border-radius: 50px;
  transition: background .2s, transform .15s, box-shadow .2s;
  text-decoration: none;
  border: none;
  cursor: pointer;
}
.btn-cta:hover {
  background: var(--blue-dark);
  text-decoration: none;
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(1,122,204,.35);
}
.cta-wrap { margin: 24px 0; }
.cta-wrap .hint {
  font-size: 12px;
  color: var(--muted);
  margin-top: 8px;
}

/* ── GAMBLING WARNING ───────────────────────────────────── */
.warning {
  background: #fffbeb;
  border-left: 4px solid #f59e0b;
  border-radius: 0 var(--radius) var(--radius) 0;
  padding: 14px 18px;
  font-size: 13px;
  color: #78350f;
  line-height: 1.55;
  margin: 20px 0;
}
.warning strong { color: #92400e; }

/* ── FAQ ─────────────────────────────────────────────────── */
.faq-section { margin: 40px 0; }
.faq-section > h2 {
  font-size: clamp(20px, 3vw, 28px);
  font-weight: 800;
  color: var(--navy);
  margin-bottom: 18px;
}
.faq-item {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  margin-bottom: 8px;
  overflow: hidden;
}
.faq-item summary {
  padding: 15px 18px;
  font-weight: 600;
  font-size: 15px;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  list-style: none;
  background: var(--surface);
  gap: 12px;
  user-select: none;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: '+';
  font-size: 22px;
  font-weight: 300;
  color: var(--blue);
  flex-shrink: 0;
  line-height: 1;
}
.faq-item[open] summary::after { content: '−'; }
.faq-item[open] summary { background: #eef6ff; color: var(--blue); }
.faq-answer {
  padding: 14px 18px 18px;
  font-size: 15px;
  line-height: 1.65;
  border-top: 1px solid var(--border);
}

/* ── REVIEWS ─────────────────────────────────────────────── */
.reviews-section {
  margin: 40px 0;
  background: var(--surface);
  border-radius: 12px;
  padding: 28px 18px;
}
.reviews-section > h2 {
  font-size: clamp(20px, 3vw, 28px);
  font-weight: 800;
  color: var(--navy);
  margin-bottom: 4px;
}
.reviews-agg {
  font-size: 14px;
  color: var(--muted);
  margin-bottom: 22px;
}
.reviews-agg strong { color: var(--navy); font-size: 16px; }
.reviews-grid { display: grid; gap: 14px; }
.review-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 18px;
  box-shadow: var(--shadow);
}
.review-head {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
  flex-wrap: wrap;
}
.review-avatar {
  width: 40px; height: 40px;
  border-radius: 50%;
  background: var(--blue);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 15px;
  flex-shrink: 0;
}
.review-info { flex: 1; min-width: 0; }
.review-info strong { display: block; font-size: 14px; }
.review-info time { font-size: 12px; color: var(--muted); }
.review-stars { color: #f59e0b; font-size: 13px; white-space: nowrap; }
.review-text { font-size: 14px; line-height: 1.6; color: var(--text); }

/* ── INDEX CARDS ─────────────────────────────────────────── */
.cards-grid { display: grid; gap: 20px; margin: 28px 0; }
.page-card {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: box-shadow .2s, transform .15s;
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: inherit;
}
.page-card:hover { box-shadow: 0 6px 20px rgba(0,47,95,.13); transform: translateY(-2px); text-decoration: none; }
.page-card img { width: 100%; height: 170px; object-fit: cover; }
.page-card-body { padding: 16px; flex: 1; }
.page-card-body h3 { font-size: 16px; font-weight: 700; margin-bottom: 6px; color: var(--navy); }
.page-card-body p { font-size: 13px; color: var(--muted); line-height: 1.5; }
.page-card-body .card-link {
  display: inline-block;
  margin-top: 12px;
  font-size: 13px;
  font-weight: 600;
  color: var(--blue);
}

/* ── INDEX HERO ──────────────────────────────────────────── */
.index-hero {
  background: linear-gradient(135deg, var(--navy) 0%, #0255a3 60%, var(--blue) 100%);
  color: var(--white);
  padding: 48px 16px 40px;
  text-align: center;
}
.index-hero h1 {
  font-size: clamp(26px, 6vw, 52px);
  font-weight: 900;
  line-height: 1.15;
  margin-bottom: 16px;
}
.index-hero p { font-size: clamp(15px, 2vw, 18px); opacity: .85; max-width: 600px; margin: 0 auto 28px; }

/* ── FOOTER ──────────────────────────────────────────────── */
.site-footer {
  background: var(--navy);
  color: rgba(255,255,255,.75);
  padding: 40px 16px 28px;
  margin-top: 48px;
}
.footer-inner { max-width: 1200px; margin: 0 auto; }
.footer-top {
  display: flex;
  flex-direction: column;
  gap: 24px;
  margin-bottom: 28px;
}
.footer-logo img { height: 32px; width: auto; opacity: .85; }
.footer-nav {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.footer-nav a {
  color: rgba(255,255,255,.75);
  font-size: 14px;
  transition: color .15s;
}
.footer-nav a:hover { color: var(--white); text-decoration: none; }
.footer-warning {
  background: rgba(255,255,255,.07);
  border-left: 3px solid #f59e0b;
  border-radius: 0 var(--radius) var(--radius) 0;
  padding: 14px 16px;
  font-size: 13px;
  line-height: 1.6;
  margin-bottom: 20px;
  color: rgba(255,255,255,.8);
}
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.1);
  padding-top: 16px;
  font-size: 12px;
  opacity: .5;
}

/* ── ASIDE / PROMO BOX ───────────────────────────────────── */
.promo-box {
  background: linear-gradient(135deg, var(--navy), var(--blue));
  border-radius: 12px;
  padding: 24px 18px;
  color: var(--white);
  text-align: center;
}
.promo-box h3 { font-size: 20px; font-weight: 800; margin-bottom: 8px; }
.promo-box p { font-size: 14px; opacity: .85; margin-bottom: 18px; }
.promo-box .btn-cta { background: var(--white); color: var(--blue); font-size: 15px; padding: 12px 26px; }
.promo-box .btn-cta:hover { background: #f0f9ff; }

.info-box {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
}
.info-box h4 { font-size: 15px; font-weight: 700; margin-bottom: 12px; color: var(--navy); }
.info-box ul { list-style: none; padding: 0; }
.info-box li {
  padding: 6px 0;
  font-size: 14px;
  border-bottom: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
}
.info-box li:last-child { border-bottom: none; }
.info-box li span { font-weight: 600; color: var(--blue); }

/* ── EVENTS LIST (live page) ─────────────────────────────── */
.events-list { list-style: none; margin: 20px 0; }
.event-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  margin-bottom: 8px;
  background: var(--surface);
  font-size: 14px;
}
.event-sport {
  background: var(--navy);
  color: var(--white);
  border-radius: 4px;
  padding: 2px 8px;
  font-size: 11px;
  font-weight: 700;
  flex-shrink: 0;
  text-transform: uppercase;
}
.event-teams { flex: 1; font-weight: 600; }
.event-coef { color: var(--blue); font-weight: 700; font-size: 15px; }

/* ── PROMO CODE DISPLAY ──────────────────────────────────── */
.promo-code-box {
  background: var(--surface);
  border: 2px dashed var(--blue);
  border-radius: var(--radius);
  padding: 20px;
  text-align: center;
  margin: 24px 0;
}
.promo-code-box .code {
  font-size: 28px;
  font-weight: 900;
  color: var(--navy);
  letter-spacing: 4px;
  font-family: monospace;
  display: block;
  margin: 8px 0;
}
.promo-code-box .code-hint { font-size: 13px; color: var(--muted); }

/* ── UTILS ───────────────────────────────────────────────── */
.text-muted { color: var(--muted); }
.section-divider { border: none; border-top: 1px solid var(--border); margin: 32px 0; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); }

/* ── RESPONSIVE: TABLET ──────────────────────────────────── */
@media (min-width: 640px) {
  .reviews-grid { grid-template-columns: repeat(2, 1fr); }
  .cards-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-nav { flex-direction: row; flex-wrap: wrap; column-gap: 24px; row-gap: 6px; }
}

/* ── RESPONSIVE: DESKTOP ─────────────────────────────────── */
@media (min-width: 900px) {
  .nav-toggle { display: none; }
  .site-nav {
    display: block !important;
    position: static;
    border: none;
    padding: 0;
    background: transparent;
    box-shadow: none;
  }
  .site-nav ul { flex-direction: row; gap: 2px; }
  .site-nav a {
    padding: 6px 12px;
    border-bottom: none;
    border-radius: 20px;
    font-size: 14px;
  }
  .site-nav a:hover { background: var(--surface); }
  .site-nav a.active { background: var(--blue); color: var(--white) !important; }

  .content-wrap { grid-template-columns: 1fr 300px; }
  .reviews-grid { grid-template-columns: repeat(2, 1fr); }
  .cards-grid { grid-template-columns: repeat(3, 1fr); }

  .footer-top { flex-direction: row; align-items: flex-start; }
  .footer-nav { flex-direction: column; gap: 4px; }

  .page-hero { padding: 52px 0 44px; }
  .page-hero .container { padding: 0 32px; }
}

@media (min-width: 1100px) {
  .reviews-grid { grid-template-columns: repeat(3, 1fr); }
  .header-inner { padding: 0 32px; }
  .container { padding: 0 32px; }
}
