/* ==========================================================
   Online Casinos List – onlinecasinoslist.info
   ========================================================== */

:root {
  --bg: #0b0f1a;
  --bg-alt: #0f1525;
  --surface: #151c2f;
  --surface-2: #1b2340;
  --border: rgba(255, 255, 255, 0.08);
  --text: #e8ecf5;
  --muted: #98a2b8;
  --accent: #f5c542;
  --accent-dark: #d9a620;
  --accent-text: #1a1200;
  --success: #3ddc84;
  --radius: 16px;
  --shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
  --font: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; display: block; }
h1, h2, h3 { line-height: 1.2; margin: 0 0 0.5em; font-weight: 800; letter-spacing: -0.01em; }
p { margin: 0 0 1em; }

.container { width: min(1160px, 100% - 32px); margin-inline: auto; }
.container.narrow { max-width: 820px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 12px 22px; border-radius: 999px;
  font-weight: 700; font-size: 15px; line-height: 1;
  border: 2px solid transparent; cursor: pointer;
  transition: transform .15s ease, box-shadow .15s ease, background .15s ease;
  text-decoration: none !important; white-space: nowrap;
}
.btn-primary {
  background: linear-gradient(180deg, #ffd978 0%, var(--accent) 45%, var(--accent-dark) 100%);
  color: var(--accent-text);
  box-shadow: 0 6px 18px rgba(245, 197, 66, 0.35);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 10px 24px rgba(245, 197, 66, 0.45); }
.btn-outline { border-color: var(--brand, var(--accent)); color: var(--text); background: transparent; }
.btn-outline:hover { background: var(--brand, var(--accent)); color: #0b0f1a; }
.btn-lg { padding: 16px 32px; font-size: 17px; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(11, 15, 26, 0.85);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}
.nav { display: flex; align-items: center; justify-content: space-between; gap: 16px; height: 64px; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--text); font-weight: 600; font-size: 18px; }
.brand:hover { text-decoration: none; }
.brand strong { color: var(--accent); font-weight: 800; }
.brand-mark {
  width: 28px; height: 28px; border-radius: 50%;
  border: 5px solid var(--accent);
  background: radial-gradient(circle, var(--accent) 0 32%, transparent 34%);
  box-shadow: 0 0 0 2px var(--bg), 0 0 18px rgba(245, 197, 66, 0.45);
}
.nav-links { display: flex; gap: 22px; }
.nav-links a { color: var(--muted); font-weight: 500; font-size: 15px; }
.nav-links a:hover { color: var(--text); text-decoration: none; }
.age-badge {
  display: inline-flex; align-items: center; justify-content: center;
  width: 36px; height: 36px; border-radius: 50%;
  border: 2px solid var(--text); font-weight: 800; font-size: 12px;
}

/* ---------- Hero ---------- */
.hero {
  position: relative; overflow: hidden; text-align: center;
  padding: 72px 0 64px;
  background:
    radial-gradient(900px 400px at 50% -10%, rgba(245, 197, 66, 0.22), transparent 70%),
    radial-gradient(600px 300px at 90% 20%, rgba(140, 92, 255, 0.18), transparent 70%),
    radial-gradient(600px 300px at 10% 30%, rgba(255, 61, 110, 0.14), transparent 70%),
    var(--bg);
}
.eyebrow {
  display: inline-block; padding: 6px 14px; border-radius: 999px;
  background: rgba(61, 220, 132, 0.12); color: var(--success);
  font-size: 13px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase;
}
.hero h1 { font-size: clamp(36px, 6vw, 60px); margin: 16px 0 12px; }
.hero .accent { color: var(--accent); }
.lead { max-width: 720px; margin: 0 auto 28px; color: var(--muted); font-size: 18px; }
.hero-stats {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px;
  max-width: 820px; margin: 0 auto 32px;
}
.hero-stats div {
  background: rgba(255, 255, 255, 0.04); border: 1px solid var(--border);
  border-radius: 14px; padding: 16px 12px; display: grid; gap: 2px;
}
.hero-stats strong { font-size: 26px; font-weight: 800; color: var(--accent); }
.hero-stats span { font-size: 13px; color: var(--muted); }

/* ---------- Sections ---------- */
.section { padding: 72px 0; }
.section-alt { background: var(--bg-alt); border-block: 1px solid var(--border); }
.section-title { text-align: center; font-size: clamp(28px, 4vw, 40px); }
.section-sub { text-align: center; color: var(--muted); max-width: 640px; margin: 0 auto 40px; }

/* ---------- Toplist ---------- */
.toplist { list-style: none; margin: 0; padding: 0; display: grid; gap: 16px; }
.casino {
  position: relative;
  display: grid;
  grid-template-columns: 56px 180px 1fr 240px 180px;
  align-items: center; gap: 20px;
  padding: 22px 24px 22px 18px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-left: 4px solid var(--brand);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  transition: transform .15s ease, border-color .15s ease;
}
.casino:hover { transform: translateY(-2px); border-color: rgba(255, 255, 255, 0.16); border-left-color: var(--brand); }
.casino:first-child { background: linear-gradient(90deg, rgba(245, 197, 66, 0.08), var(--surface) 40%); border-color: rgba(245, 197, 66, 0.35); border-left-color: var(--brand); }

.rank {
  width: 40px; height: 40px; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--surface-2); border: 1px solid var(--border);
  font-weight: 800; font-size: 16px; color: var(--muted);
}
.casino:nth-child(-n+3) .rank { background: var(--accent); color: var(--accent-text); border-color: transparent; }

.ribbon {
  position: absolute; top: -12px; left: 24px;
  background: var(--accent); color: var(--accent-text);
  padding: 4px 12px; border-radius: 999px;
  font-size: 12px; font-weight: 800; text-transform: uppercase; letter-spacing: .04em;
}

/* Logo tiles (480x270 images in /img) */
.logo { height: 84px; border-radius: 12px; overflow: hidden; background: #000; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.12); }
.logo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.logo-sm { width: 96px; height: 64px; flex-shrink: 0; }

.info h3 { font-size: 20px; margin: 0 0 4px; display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.tag {
  font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .05em;
  padding: 3px 9px; border-radius: 999px;
  background: color-mix(in srgb, var(--brand) 20%, transparent); color: var(--brand);
}
.rating { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--muted); margin-bottom: 8px; }
.rating b { color: var(--text); font-size: 14px; }
.stars {
  position: relative; display: inline-block; width: 90px; height: 16px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 18 16' width='18' height='16'%3E%3Cpath d='M9 0l2.6 5.5 6 .7-4.4 4.1 1.1 5.9L9 13.3 3.7 16.2l1.1-5.9L.4 6.2l6-.7z' fill='%23363f58'/%3E%3C/svg%3E") repeat-x;
}
.stars::before {
  content: ""; position: absolute; inset: 0; width: var(--w, 100%);
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 18 16' width='18' height='16'%3E%3Cpath d='M9 0l2.6 5.5 6 .7-4.4 4.1 1.1 5.9L9 13.3 3.7 16.2l1.1-5.9L.4 6.2l6-.7z' fill='%23f5c542'/%3E%3C/svg%3E") repeat-x;
}
.features { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px 14px; font-size: 13px; color: var(--muted); }
.features li::before { content: "✓"; color: var(--success); font-weight: 800; margin-right: 6px; }

.bonus { display: grid; gap: 2px; text-align: center; padding: 0 12px; border-inline: 1px solid var(--border); }
.bonus-label { font-size: 11px; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); font-weight: 600; }
.bonus-main { font-size: 24px; font-weight: 800; color: var(--accent); line-height: 1.1; }
.bonus-extra { font-size: 15px; font-weight: 700; }
.bonus-cashback { font-size: 13px; color: var(--success); font-weight: 600; }

.cta { display: grid; gap: 8px; justify-items: center; text-align: center; }
.cta .btn { width: 100%; }
.review-link { font-size: 13px; color: var(--muted); }
.review-link:hover { color: var(--text); }
.cta small { font-size: 11px; color: var(--muted); }

.disclosure {
  margin-top: 28px; padding: 14px 18px; border-radius: 12px;
  background: rgba(255, 255, 255, 0.03); border: 1px dashed var(--border);
  font-size: 13px; color: var(--muted); text-align: center;
}

/* ---------- Reviews ---------- */
.reviews { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.review {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 24px; display: flex; flex-direction: column; gap: 14px;
}
.review-head { display: flex; align-items: center; gap: 16px; }
.review-head h3 { font-size: 20px; margin: 0 0 2px; }
.review-bonus { margin: 0; font-size: 14px; color: var(--accent); font-weight: 600; }
.review p { color: var(--muted); font-size: 15px; margin: 0; flex: 1; }
.review .btn { align-self: flex-start; }

/* ---------- How we rank ---------- */
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.card {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 26px 22px;
}
.card-icon { font-size: 30px; display: block; margin-bottom: 12px; }
.card h3 { font-size: 18px; }
.card p { color: var(--muted); font-size: 14px; margin: 0; }

/* ---------- FAQ ---------- */
.faq { display: grid; gap: 10px; }
.faq details {
  background: var(--surface); border: 1px solid var(--border); border-radius: 12px; padding: 0 20px;
}
.faq summary {
  cursor: pointer; list-style: none; padding: 18px 0; font-weight: 700; font-size: 16px;
  display: flex; justify-content: space-between; align-items: center; gap: 12px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 22px; color: var(--accent); line-height: 1; transition: transform .2s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { color: var(--muted); padding-bottom: 18px; margin: 0; font-size: 15px; }

/* ---------- Responsible gambling ---------- */
.rg { text-align: center; }
.rg p { color: var(--muted); }
.rg-links { list-style: none; padding: 0; margin: 20px 0 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; }
.rg-links a {
  display: inline-block; padding: 8px 16px; border-radius: 999px;
  border: 1px solid var(--border); color: var(--text); font-size: 14px; font-weight: 600;
}
.rg-links a:hover { border-color: var(--accent); text-decoration: none; }

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--border); background: var(--bg-alt); padding: 40px 0 28px; }
.footer-top { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 16px; margin-bottom: 24px; }
.footer-links { display: flex; flex-wrap: wrap; gap: 18px; }
.footer-links a { color: var(--muted); font-size: 14px; }
.footer-legal { font-size: 13px; color: var(--muted); max-width: 900px; }
.footer-copy { font-size: 13px; color: var(--muted); margin: 0; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.footer-copy .age-badge { width: 28px; height: 28px; font-size: 10px; }

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .casino { grid-template-columns: 48px 140px 1fr 200px; }
  .cta { grid-column: 1 / -1; grid-template-columns: auto auto; justify-content: center; align-items: center; }
  .cta .btn { width: auto; min-width: 200px; }
  .cta small { grid-column: 1 / -1; }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 760px) {
  .nav-links { display: none; }
  .hero { padding: 48px 0 44px; }
  .hero-stats { grid-template-columns: repeat(2, 1fr); }
  .section { padding: 48px 0; }
  .casino {
    grid-template-columns: 1fr;
    gap: 14px; padding: 20px 18px;
    border-left-width: 1px; border-top: 4px solid var(--brand);
  }
  .casino:first-child { background: var(--surface); }
  .rank { position: absolute; top: 14px; right: 14px; width: 34px; height: 34px; font-size: 14px; }
  .ribbon { left: 16px; }
  .logo { height: 72px; max-width: 220px; }
  .bonus { border: none; padding: 12px; background: rgba(255, 255, 255, 0.03); border-radius: 12px; }
  .cta { grid-template-columns: 1fr; }
  .cta .btn { width: 100%; }
  .reviews { grid-template-columns: 1fr; }
  .grid-4 { grid-template-columns: 1fr; }
}

/* ---------- Licence ---------- */
.licence { display: inline-flex; align-items: center; gap: 5px; font-size: 12px; font-weight: 600; color: var(--muted); margin-bottom: 8px; cursor: help; }
.licence-icon { font-size: 13px; color: var(--success); }
.review-meta { margin: 2px 0 0; font-size: 12px; color: var(--muted); }
.review-head > div:last-child p { margin-bottom: 0; }
