/* Avantgarde Casino UK Guide — modern gradient conversion design */

:root {
  --bg-deep: #0d0021;
  --bg-mid: #1a0033;
  --bg-rise: #3d1f5c;
  --bg-card: #1f0a3d;
  --bg-card-hi: #2a0f4e;
  --gold: #ffd700;
  --gold-deep: #d4a937;
  --gold-soft: #fff3a8;
  --red: #ff3366;
  --red-deep: #cc1f4e;
  --green: #2ecc71;
  --text: #f4f0ff;
  --text-mute: #c9bce3;
  --text-dim: #8d7eae;
  --border: rgba(255, 215, 0, 0.18);
  --border-hi: rgba(255, 215, 0, 0.45);
  --shadow-gold: 0 0 24px rgba(255, 215, 0, 0.25);
  --shadow-card: 0 8px 32px rgba(0, 0, 0, 0.4);
  --grad-hero: linear-gradient(135deg, #1a0033 0%, #3d1f5c 50%, #6a2c8f 100%);
  --grad-gold: linear-gradient(135deg, #ffd700 0%, #ffa500 100%);
  --grad-cta: linear-gradient(135deg, #ff3366 0%, #ff6b2b 100%);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: 'Inter', system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  font-size: 16px;
  line-height: 1.65;
  color: var(--text);
  background: var(--bg-deep);
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
  font-family: 'Poppins', 'Inter', sans-serif;
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.2;
  margin: 0 0 16px;
  color: var(--text);
}
h1 { font-size: clamp(1.9rem, 4.5vw, 3rem); }
h2 { font-size: clamp(1.5rem, 3vw, 2rem); margin-top: 48px; padding-bottom: 12px; border-bottom: 1px solid var(--border); }
h3 { font-size: clamp(1.15rem, 2.2vw, 1.4rem); margin-top: 28px; color: var(--gold-soft); }
h4 { font-size: 1.05rem; color: var(--gold); }
p { margin: 0 0 16px; color: var(--text-mute); }
a { color: var(--gold); text-decoration: none; transition: color 0.2s; }
a:hover { color: var(--gold-soft); }
strong { color: var(--text); font-weight: 700; }

/* ============ STICKY BONUS BAR ============ */
.bonus-bar {
  position: sticky; top: 0; z-index: 100;
  background: linear-gradient(90deg, #cc1f4e 0%, #ff3366 50%, #ff6b2b 100%);
  color: #fff; padding: 10px 16px;
  font-size: 0.92rem; font-weight: 600;
  text-align: center; box-shadow: 0 2px 14px rgba(0,0,0,0.35);
  display: flex; align-items: center; justify-content: center; gap: 14px; flex-wrap: wrap;
}
.bonus-bar .countdown { background: rgba(0,0,0,0.35); padding: 4px 10px; border-radius: 4px; font-variant-numeric: tabular-nums; }
.bonus-bar a.claim { background: var(--gold); color: #1a0033; padding: 6px 16px; border-radius: 4px; font-weight: 800; text-transform: uppercase; font-size: 0.82rem; letter-spacing: 0.05em; }
.bonus-bar a.claim:hover { background: var(--gold-soft); }

/* ============ HEADER / NAV ============ */
.site-header {
  background: rgba(13, 0, 33, 0.85);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
  position: sticky; top: 40px; z-index: 90;
}
.top-nav { display: flex; align-items: center; justify-content: space-between; gap: 24px; max-width: 1200px; margin: 0 auto; padding: 14px 20px; flex-wrap: wrap; }
.brand { color: var(--gold); font-weight: 800; font-size: 1.1rem; font-family: 'Poppins', sans-serif; }
.brand span { color: var(--text); font-weight: 400; }
.top-nav ul { list-style: none; display: flex; flex-wrap: wrap; gap: 22px; margin: 0; padding: 0; }
.top-nav ul a { color: var(--text-mute); font-size: 0.92rem; font-weight: 500; padding: 4px 0; border-bottom: 2px solid transparent; }
.top-nav ul a:hover, .top-nav ul a[aria-current="page"] { color: var(--gold); border-bottom-color: var(--gold); }

/* ============ HERO ============ */
.hero {
  background: var(--grad-hero);
  padding: 60px 20px 80px; position: relative; overflow: hidden;
}
.hero::before {
  content: ''; position: absolute; inset: 0;
  background: radial-gradient(circle at 20% 20%, rgba(255, 215, 0, 0.15) 0%, transparent 50%),
              radial-gradient(circle at 80% 80%, rgba(255, 51, 102, 0.12) 0%, transparent 50%);
  pointer-events: none;
}
.hero-inner { max-width: 1100px; margin: 0 auto; position: relative; display: grid; grid-template-columns: 1.4fr 1fr; gap: 40px; align-items: center; }
.hero-content .eyebrow { display: inline-block; background: rgba(255, 215, 0, 0.12); border: 1px solid var(--gold); color: var(--gold); padding: 6px 14px; border-radius: 99px; font-size: 0.78rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; margin-bottom: 16px; }
.hero-content h1 { background: var(--grad-gold); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero-lede { font-size: 1.15rem; color: var(--text); max-width: 580px; }
.hero-stats { display: flex; flex-wrap: wrap; gap: 20px; margin: 24px 0 28px; }
.hero-stats .stat { background: rgba(255,255,255,0.05); border: 1px solid var(--border); border-radius: 12px; padding: 14px 20px; min-width: 120px; }
.hero-stats .num { font-size: 1.6rem; font-weight: 800; color: var(--gold); font-family: 'Poppins', sans-serif; line-height: 1; }
.hero-stats .label { font-size: 0.78rem; color: var(--text-dim); text-transform: uppercase; letter-spacing: 0.06em; margin-top: 4px; }

.cta-row { display: flex; gap: 14px; flex-wrap: wrap; align-items: center; }
.btn { display: inline-flex; align-items: center; gap: 10px; padding: 14px 28px; border-radius: 8px; font-weight: 800; font-size: 1rem; text-transform: uppercase; letter-spacing: 0.06em; transition: all 0.2s; cursor: pointer; border: none; }
.btn-primary { background: var(--grad-cta); color: #fff; box-shadow: 0 4px 18px rgba(255, 51, 102, 0.4); }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 6px 24px rgba(255, 51, 102, 0.6); color: #fff; }
.btn-primary.pulse { animation: pulse 2s infinite; }
@keyframes pulse {
  0%, 100% { box-shadow: 0 4px 18px rgba(255, 51, 102, 0.4); }
  50% { box-shadow: 0 4px 24px rgba(255, 51, 102, 0.9), 0 0 0 8px rgba(255, 51, 102, 0.1); }
}
.btn-secondary { background: transparent; color: var(--gold); border: 2px solid var(--gold); }
.btn-secondary:hover { background: var(--gold); color: var(--bg-deep); }

/* Hero card on the right */
.hero-card {
  background: linear-gradient(135deg, rgba(255,215,0,0.08), rgba(255,215,0,0.02));
  border: 1px solid var(--border-hi); border-radius: 18px; padding: 28px;
  box-shadow: var(--shadow-card); position: relative;
}
.hero-card .ribbon { position: absolute; top: -12px; left: 24px; background: var(--grad-cta); color: #fff; padding: 6px 14px; border-radius: 4px; font-size: 0.72rem; font-weight: 800; text-transform: uppercase; letter-spacing: 0.1em; }
.hero-card h2 { font-size: 1.2rem; margin: 0 0 8px; border: none; padding: 0; color: var(--gold-soft); }
.hero-card .bonus-amount { font-size: 2.6rem; font-weight: 800; background: var(--grad-gold); -webkit-background-clip: text; background-clip: text; color: transparent; font-family: 'Poppins'; line-height: 1; margin: 8px 0; }
.hero-card .bonus-line { color: var(--text); font-size: 0.95rem; margin: 6px 0; display: flex; align-items: center; gap: 10px; }
.hero-card .bonus-line svg { flex-shrink: 0; }
.hero-card .small { font-size: 0.78rem; color: var(--text-dim); margin-top: 14px; line-height: 1.5; }

/* ============ MAIN CONTAINER ============ */
main { max-width: 1100px; margin: 0 auto; padding: 0 20px; }
section { padding: 40px 0; scroll-margin-top: 140px; }
.lede { font-size: 1.1rem; color: var(--text); }

/* ============ CARDS / GRIDS ============ */
.card-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 20px; margin: 24px 0; }
.card {
  background: var(--bg-card); border: 1px solid var(--border); border-radius: 14px; padding: 24px;
  transition: all 0.25s; position: relative;
}
.card:hover { transform: translateY(-4px); border-color: var(--border-hi); box-shadow: var(--shadow-card); }
.card h3 { margin-top: 0; color: var(--gold); }
.card .icon { width: 44px; height: 44px; background: rgba(255,215,0,0.1); border-radius: 10px; display: inline-flex; align-items: center; justify-content: center; margin-bottom: 14px; color: var(--gold); }

/* Bonus cards (codes) */
.bonus-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 20px; margin: 28px 0; }
.bonus-card {
  background: linear-gradient(160deg, var(--bg-card-hi), var(--bg-card));
  border: 1px solid var(--border-hi); border-radius: 16px; padding: 24px;
  position: relative; overflow: hidden;
}
.bonus-card::before { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 4px; background: var(--grad-gold); }
.bonus-card .tag { display: inline-block; background: var(--red); color: #fff; padding: 4px 10px; border-radius: 4px; font-size: 0.7rem; font-weight: 800; text-transform: uppercase; letter-spacing: 0.08em; margin-bottom: 10px; }
.bonus-card .tag.green { background: var(--green); }
.bonus-card .amount { font-size: 2rem; font-weight: 800; background: var(--grad-gold); -webkit-background-clip: text; background-clip: text; color: transparent; font-family: 'Poppins'; }
.bonus-card .type { font-size: 0.9rem; color: var(--text-mute); margin: 4px 0 14px; }
.bonus-card .code-box { background: rgba(0,0,0,0.3); border: 2px dashed var(--gold); border-radius: 8px; padding: 12px 16px; margin: 14px 0; display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.bonus-card .code-box code { font-family: 'JetBrains Mono', 'Courier New', monospace; color: var(--gold); font-weight: 700; letter-spacing: 0.1em; font-size: 1.05rem; }
.bonus-card .reveal-btn { background: var(--gold); color: var(--bg-deep); border: none; padding: 6px 12px; border-radius: 4px; font-weight: 800; font-size: 0.78rem; cursor: pointer; text-transform: uppercase; letter-spacing: 0.05em; }
.bonus-card .reveal-btn:hover { background: var(--gold-soft); }
.bonus-card ul { list-style: none; padding: 0; margin: 12px 0; font-size: 0.88rem; }
.bonus-card ul li { padding: 4px 0; color: var(--text-mute); display: flex; align-items: center; gap: 8px; }
.bonus-card ul li::before { content: '✓'; color: var(--green); font-weight: 800; }
.bonus-card .claim-btn { display: block; width: 100%; background: var(--grad-cta); color: #fff; text-align: center; padding: 12px; border-radius: 8px; font-weight: 800; text-transform: uppercase; letter-spacing: 0.06em; margin-top: 14px; }
.bonus-card .claim-btn:hover { color: #fff; transform: translateY(-1px); }

/* ============ TABLES ============ */
.data-table { width: 100%; border-collapse: collapse; margin: 20px 0; background: var(--bg-card); border-radius: 12px; overflow: hidden; font-size: 0.92rem; }
.data-table th { background: rgba(255,215,0,0.08); color: var(--gold); text-align: left; padding: 14px 16px; font-weight: 700; font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.06em; border-bottom: 1px solid var(--border); }
.data-table td { padding: 14px 16px; border-bottom: 1px solid rgba(255,255,255,0.05); color: var(--text-mute); }
.data-table tr:last-child td { border-bottom: none; }
.data-table tr:hover td { background: rgba(255,215,0,0.03); color: var(--text); }
.data-table .yes { color: var(--green); font-weight: 700; }
.data-table .no { color: var(--red); font-weight: 700; }
.data-table code { color: var(--gold); background: rgba(0,0,0,0.3); padding: 2px 8px; border-radius: 4px; font-weight: 600; }

/* ============ PROS / CONS ============ */
.pros-cons { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin: 24px 0; }
.pros-cons > div { background: var(--bg-card); border-radius: 14px; padding: 24px; border: 1px solid var(--border); }
.pros-cons .pros { border-left: 4px solid var(--green); }
.pros-cons .cons { border-left: 4px solid var(--red); }
.pros-cons h3 { margin-top: 0; }
.pros-cons ul { list-style: none; padding: 0; margin: 0; }
.pros-cons li { padding: 8px 0; padding-left: 28px; position: relative; color: var(--text-mute); }
.pros-cons .pros li::before { content: '✓'; position: absolute; left: 0; color: var(--green); font-weight: 800; font-size: 1.1rem; }
.pros-cons .cons li::before { content: '✗'; position: absolute; left: 0; color: var(--red); font-weight: 800; font-size: 1.1rem; }

/* ============ SCORECARD ============ */
.scorecard { background: var(--bg-card); border: 1px solid var(--border-hi); border-radius: 16px; padding: 28px; margin: 24px 0; }
.scorecard .overall { display: flex; align-items: center; gap: 24px; padding-bottom: 20px; margin-bottom: 20px; border-bottom: 1px solid var(--border); }
.scorecard .big-score { font-size: 3.4rem; font-weight: 800; background: var(--grad-gold); -webkit-background-clip: text; background-clip: text; color: transparent; font-family: 'Poppins'; line-height: 1; }
.scorecard .big-score-meta { display: flex; flex-direction: column; }
.scorecard .stars { color: var(--gold); font-size: 1.3rem; letter-spacing: 0.1em; }
.scorecard .verdict-tag { font-size: 0.85rem; color: var(--text-dim); text-transform: uppercase; letter-spacing: 0.08em; margin-top: 4px; }
.score-rows { display: grid; gap: 14px; }
.score-row { display: grid; grid-template-columns: 160px 1fr 50px; align-items: center; gap: 14px; }
.score-row .name { color: var(--text); font-size: 0.92rem; }
.score-row .bar { height: 8px; background: rgba(255,255,255,0.06); border-radius: 4px; overflow: hidden; }
.score-row .bar-fill { height: 100%; background: var(--grad-gold); border-radius: 4px; }
.score-row .num { color: var(--gold); font-weight: 800; font-variant-numeric: tabular-nums; text-align: right; }

/* ============ INFOGRAPHIC / STATS ============ */
.infographic { background: var(--bg-card); border: 1px solid var(--border); border-radius: 16px; padding: 28px; margin: 24px 0; }
.infographic h3 { margin-top: 0; }
.bar-chart { display: grid; gap: 12px; margin: 20px 0; }
.bar-item { display: grid; grid-template-columns: 140px 1fr 80px; align-items: center; gap: 12px; font-size: 0.9rem; }
.bar-item .name { color: var(--text); }
.bar-item .track { height: 28px; background: rgba(255,255,255,0.04); border-radius: 6px; overflow: hidden; position: relative; }
.bar-item .fill { height: 100%; background: var(--grad-gold); border-radius: 6px; display: flex; align-items: center; padding: 0 10px; color: var(--bg-deep); font-weight: 700; font-size: 0.82rem; }
.bar-item .fill.alt { background: linear-gradient(90deg, var(--bg-rise), var(--bg-card-hi)); color: var(--text-mute); }
.bar-item .val { color: var(--gold); font-weight: 800; text-align: right; font-variant-numeric: tabular-nums; }

.stat-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 16px; margin: 24px 0; }
.stat-block { background: var(--bg-card); border: 1px solid var(--border); border-radius: 12px; padding: 20px; text-align: center; }
.stat-block .big { font-size: 2.4rem; font-weight: 800; background: var(--grad-gold); -webkit-background-clip: text; background-clip: text; color: transparent; font-family: 'Poppins'; line-height: 1; }
.stat-block .small { font-size: 0.82rem; color: var(--text-dim); text-transform: uppercase; letter-spacing: 0.06em; margin-top: 8px; }

/* ============ STEP LIST ============ */
.steps { counter-reset: stepcount; list-style: none; padding: 0; margin: 24px 0; display: grid; gap: 16px; }
.steps li { counter-increment: stepcount; background: var(--bg-card); border: 1px solid var(--border); border-radius: 12px; padding: 20px 24px 20px 70px; position: relative; }
.steps li::before { content: counter(stepcount); position: absolute; left: 20px; top: 18px; width: 36px; height: 36px; background: var(--grad-gold); color: var(--bg-deep); border-radius: 50%; font-weight: 800; font-size: 1.1rem; display: flex; align-items: center; justify-content: center; font-family: 'Poppins'; }
.steps li h4 { margin: 0 0 6px; color: var(--text); }
.steps li p { margin: 0; font-size: 0.92rem; }

/* ============ FAQ ACCORDION ============ */
.faq { display: grid; gap: 12px; margin: 24px 0; }
.faq details { background: var(--bg-card); border: 1px solid var(--border); border-radius: 10px; overflow: hidden; transition: border-color 0.2s; }
.faq details[open] { border-color: var(--border-hi); }
.faq summary { padding: 18px 22px; cursor: pointer; font-weight: 700; color: var(--text); list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; color: var(--gold); font-size: 1.4rem; font-weight: 400; transition: transform 0.2s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq summary:hover { color: var(--gold); }
.faq .answer { padding: 0 22px 20px; color: var(--text-mute); }
.faq .answer p:last-child { margin-bottom: 0; }

/* ============ CALLOUT / DISCLOSURE ============ */
.disclosure { background: rgba(255, 215, 0, 0.06); border-left: 4px solid var(--gold); padding: 14px 18px; border-radius: 4px; font-size: 0.9rem; color: var(--text-mute); }
.callout { background: linear-gradient(135deg, rgba(255,51,102,0.1), rgba(255,107,43,0.05)); border: 1px solid var(--red); border-radius: 12px; padding: 20px 24px; margin: 24px 0; }
.callout h4 { margin: 0 0 8px; color: var(--red); }
.callout p { margin: 0; }

/* ============ TOC ============ */
.toc { background: var(--bg-card); border: 1px solid var(--border); border-radius: 12px; padding: 20px 24px; margin: 24px 0; }
.toc h4 { margin: 0 0 12px; color: var(--gold); text-transform: uppercase; letter-spacing: 0.08em; font-size: 0.85rem; }
.toc ol { columns: 2; column-gap: 30px; margin: 0; padding-left: 18px; font-size: 0.92rem; }
.toc ol li { padding: 4px 0; color: var(--text-mute); }
.toc ol li a { color: var(--text-mute); }
.toc ol li a:hover { color: var(--gold); }

/* ============ RELATED PAGES BLOCK ============ */
.related-pages { background: linear-gradient(135deg, var(--bg-mid), var(--bg-card)); border: 1px solid var(--border); border-radius: 16px; padding: 28px; margin: 40px 0; }
.related-pages h2 { margin-top: 0; border: none; padding: 0; }
.related-pages .grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 16px; margin-top: 18px; }
.related-pages .grid a { background: rgba(255,215,0,0.04); border: 1px solid var(--border); border-radius: 10px; padding: 16px; color: var(--text); transition: all 0.2s; display: block; }
.related-pages .grid a:hover { background: rgba(255,215,0,0.1); border-color: var(--gold); transform: translateY(-2px); }
.related-pages .grid a strong { display: block; color: var(--gold); margin-bottom: 4px; }
.related-pages .grid a span { font-size: 0.88rem; color: var(--text-mute); }

/* ============ FOOTER ============ */
.site-footer { background: var(--bg-mid); border-top: 1px solid var(--border); padding: 40px 20px; margin-top: 60px; font-size: 0.88rem; }
.site-footer .inner { max-width: 1100px; margin: 0 auto; }
.site-footer .responsible { background: rgba(255,51,102,0.06); border: 1px solid rgba(255,51,102,0.3); border-radius: 10px; padding: 18px 22px; margin-bottom: 24px; color: var(--text); }
.site-footer .responsible strong { color: var(--red); }
.site-footer .cols { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 30px; margin-bottom: 24px; }
.site-footer h5 { color: var(--gold); margin: 0 0 12px; font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.08em; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { padding: 4px 0; }
.site-footer a { color: var(--text-mute); }
.site-footer a:hover { color: var(--gold); }
.site-footer .legal { border-top: 1px solid var(--border); padding-top: 20px; color: var(--text-dim); font-size: 0.82rem; }
.site-footer .ra-logos { display: flex; gap: 14px; flex-wrap: wrap; align-items: center; margin: 14px 0; }
.site-footer .ra-logos span { background: rgba(255,255,255,0.05); border: 1px solid var(--border); padding: 6px 14px; border-radius: 6px; font-weight: 700; color: var(--gold); font-size: 0.82rem; }

/* ============ RESPONSIVE ============ */
@media (max-width: 880px) {
  .hero-inner { grid-template-columns: 1fr; }
  .pros-cons { grid-template-columns: 1fr; }
  .toc ol { columns: 1; }
  .site-footer .cols { grid-template-columns: 1fr; }
  .score-row { grid-template-columns: 110px 1fr 40px; }
  .bar-item { grid-template-columns: 110px 1fr 60px; font-size: 0.82rem; }
  .top-nav ul { gap: 12px; }
  .top-nav ul a { font-size: 0.82rem; }
}
@media (max-width: 560px) {
  .hero { padding: 40px 16px 50px; }
  .hero-stats .stat { flex: 1 1 calc(50% - 10px); min-width: 0; }
  .scorecard .overall { flex-direction: column; align-items: flex-start; gap: 12px; }
  .scorecard .big-score { font-size: 2.6rem; }
  section { padding: 30px 0; }
}
