/* Noite dos Casinos — Dark Theme CSS
   Mobile-first • BEM-like (ux-*) • Accessibility-first */

/* =====================================================
   Root tokens
   ===================================================== */
:root {
  /* Palette */
  --bg-0: #0b0f14;         /* app background */
  --bg-1: #0f141b;         /* section background */
  --bg-2: #121923;         /* card background */
  --bg-3: #16202b;         /* elevated/glass */

  --text-0: #e6ecf1;       /* primary text */
  --text-1: #cbd7e1;       /* secondary text */
  --text-2: #9fb0bf;       /* muted */

  --brand: #2fb9a8;        /* cyan accent */
  --brand-600: #27a091;
  --brand-300: #74d6cb;
  --accent: #6d5dd2;       /* soft violet */
  --accent-600: #5a4db2;
  --warning: #ffb86b;
  --danger: #f26d6d;

  --ring: rgba(47, 185, 168, 0.65);
  --border-1: rgba(255,255,255,0.06);
  --border-2: rgba(255,255,255,0.1);
  --shadow-1: 0 6px 24px rgba(0, 0, 0, 0.35);
  --shadow-2: 0 10px 34px rgba(0, 0, 0, 0.45);

  /* Typography */
  --font-primary: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Arial, sans-serif;
  --font-secondary: 'Merriweather', Georgia, serif;

  --fs-xs: 0.75rem;   /* 12 */
  --fs-sm: 0.875rem;  /* 14 */
  --fs-md: 1rem;      /* 16 */
  --fs-lg: 1.125rem;  /* 18 */
  --fs-xl: 1.25rem;   /* 20 */
  --fs-2xl: 1.5rem;   /* 24 */
  --fs-3xl: 1.875rem; /* 30 */
  --fs-4xl: 2.25rem;  /* 36 */
  --fs-5xl: 3rem;     /* 48 */

  /* Space */
  --sp-2: 0.125rem;  /* 2 */
  --sp-4: 0.25rem;   /* 4 */
  --sp-6: 0.375rem;  /* 6 */
  --sp-8: 0.5rem;    /* 8 */
  --sp-12: 0.75rem;  /* 12 */
  --sp-16: 1rem;     /* 16 */
  --sp-20: 1.25rem;  /* 20 */
  --sp-24: 1.5rem;   /* 24 */
  --sp-32: 2rem;     /* 32 */
  --sp-40: 2.5rem;   /* 40 */
  --sp-48: 3rem;     /* 48 */
  --sp-64: 4rem;     /* 64 */
  --sp-96: 6rem;     /* 96 */

  /* Radius */
  --r-6: 6px;
  --r-8: 8px;
  --r-12: 12px;
  --r-16: 16px;
  --r-20: 20px;
  --r-full: 999px;

  /* Layout */
  --container-sm: 540px;
  --container-md: 720px;
  --container-lg: 960px;
  --container-xl: 1140px;
  --container-2xl: 1320px;
}

/* =====================================================
   Reset & base
   ===================================================== */
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
html, body { height: 100%; }
body {
  margin: 0;
  font-family: var(--font-primary);
  font-size: var(--fs-md);
  line-height: 1.6;
  color: var(--text-0);
  background: radial-gradient(1200px 600px at 10% -10%, rgba(109,93,210,0.12), transparent 60%),
              radial-gradient(1200px 600px at 110% 10%, rgba(47,185,168,0.12), transparent 60%),
              var(--bg-0);
}
img { max-width: 100%; display: block; height: auto; }
a { color: var(--brand-300); text-decoration: none; }
a:hover { color: var(--brand); text-decoration: underline; }
strong { font-weight: 700; }

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-secondary);
  margin: 0 0 var(--sp-16);
  line-height: 1.25;
}

/* Containers */
.container, .ux-header__wrap, .ux-hero__wrap, .ux-listings__wrap, .ux-values__wrap, .ux-criteria__wrap, .ux-footer__wrap {
  width: 100%;
  max-width: var(--container-xl);
  margin: 0 auto;
  padding: 0 var(--sp-16);
}
@media (min-width: 768px) {
  .container, .ux-header__wrap, .ux-hero__wrap, .ux-listings__wrap, .ux-values__wrap, .ux-criteria__wrap, .ux-footer__wrap {
    padding: 0 var(--sp-24);
  }
}

/* Skip link */
.skip-link {
  position: absolute; left: -9999px; top: auto; width: 1px; height: 1px; overflow: hidden;
}
.skip-link:focus { position: fixed; left: var(--sp-16); top: var(--sp-16); width: auto; height: auto; padding: var(--sp-12) var(--sp-16); background: var(--bg-2); color: var(--text-0); border-radius: var(--r-8); outline: 2px solid var(--ring); }

/* Focus styles */
:focus-visible { outline: 2px solid var(--ring); outline-offset: 2px; }

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
}

/* =====================================================
   Buttons
   ===================================================== */
.btn {
  --btn-bg: var(--bg-3);
  --btn-fg: var(--text-0);
  display: inline-flex; align-items: center; justify-content: center;
  gap: var(--sp-8);
  padding: var(--sp-12) var(--sp-20);
  border-radius: var(--r-12);
  border: 1px solid var(--border-2);
  background: var(--btn-bg);
  color: var(--btn-fg);
  font-weight: 600;
  font-size: var(--fs-sm);
  line-height: 1;
  text-decoration: none;
  transition: transform .18s ease, box-shadow .18s ease, background-color .18s ease, border-color .18s ease, color .18s ease;
}
.btn:hover { transform: translateY(-1px); box-shadow: var(--shadow-1); text-decoration: none; }
.btn:active { transform: translateY(0); }

.btn--primary { --btn-bg: var(--brand); --btn-fg: #051b17; border-color: rgba(47,185,168,0.25); }
.btn--primary:hover { --btn-bg: var(--brand-600); }

.btn--accent { --btn-bg: var(--accent); --btn-fg: #0e0c1a; border-color: rgba(109,93,210,0.3); }
.btn--accent:hover { --btn-bg: var(--accent-600); }

.btn--muted { --btn-bg: var(--bg-2); --btn-fg: var(--text-1); }

/* =====================================================
   Age Gate (18+)
   ===================================================== */
.gate-18 {
  position: fixed; inset: 0; background: rgba(3, 6, 10, 0.85);
  display: none; align-items: center; justify-content: center; padding: var(--sp-16);
  z-index: 1000;
}
.gate-18__dialog {
  background: linear-gradient(180deg, rgba(22,32,43,0.85), rgba(22,32,43,0.95));
  backdrop-filter: blur(10px);
  border: 1px solid var(--border-2);
  border-radius: var(--r-16);
  padding: var(--sp-32);
  width: 100%; max-width: 440px; text-align: center; box-shadow: var(--shadow-2);
}
.gate-18__icon { width: 80px; height: 80px; margin: 0 auto var(--sp-16); opacity: .95; }
.gate-18__title { font-size: var(--fs-2xl); color: var(--text-0); margin-bottom: var(--sp-8); }
.gate-18__text { color: var(--text-2); margin-bottom: var(--sp-24); }
.gate-18__actions { display: grid; gap: var(--sp-12); }
@media (min-width: 480px) { .gate-18__actions { grid-template-columns: 1fr 1fr; } }

/* =====================================================
   Header
   ===================================================== */
.ux-header { position: sticky; top: 0; z-index: 900; background: rgba(11, 15, 20, 0.65); backdrop-filter: saturate(140%) blur(8px); border-bottom: 1px solid var(--border-1); }
.ux-header__wrap { display: flex; align-items: center; justify-content: space-between; padding: var(--sp-12) var(--sp-16); }
.ux-header__brand { flex-shrink: 0; }
.ux-header__logo { height: 42px; width: auto; filter: drop-shadow(0 1px 0 rgba(0,0,0,.25)); }

.ux-header__menu { list-style: none; display: flex; gap: var(--sp-24); margin: 0; padding: 0; }
.ux-header__link { color: var(--text-1); font-weight: 600; position: relative; padding: var(--sp-8) 0; }
.ux-header__link:hover { color: var(--text-0); text-decoration: none; }
.ux-header__link.is-active { color: var(--brand-300); }
.ux-header__link.is-active::after { content: ''; position: absolute; left: 0; right: 0; bottom: -2px; height: 2px; background: linear-gradient(90deg, var(--brand) 0%, var(--accent) 100%); border-radius: 2px; }

.ux-header__burger { width: 28px; height: 28px; display: inline-flex; flex-direction: column; justify-content: center; gap: 5px; background: transparent; border: 0; cursor: pointer; }
.ux-header__bar { width: 100%; height: 2px; background: var(--text-1); transition: transform .2s ease, opacity .2s ease; border-radius: 2px; }
.ux-header__burger.is-active .ux-header__bar:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.ux-header__burger.is-active .ux-header__bar:nth-child(2) { opacity: 0; }
.ux-header__burger.is-active .ux-header__bar:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.ux-header__mobile { position: fixed; top: 60px; right: -100%; width: 260px; height: calc(100vh - 60px); background: linear-gradient(180deg, rgba(18,25,35,0.98), rgba(15,20,27,0.98)); border-left: 1px solid var(--border-1); box-shadow: var(--shadow-2); transition: right .24s ease; z-index: 850; }
.ux-header__mobile.is-open { right: 0; }
.ux-header__mobile-list { list-style: none; margin: 0; padding: var(--sp-24); display: grid; gap: var(--sp-8); }
.ux-header__mobile-link { display: block; color: var(--text-0); padding: var(--sp-12) var(--sp-16); border-radius: var(--r-12); border: 1px solid transparent; }
.ux-header__mobile-link:hover { text-decoration: none; background: rgba(255,255,255,0.04); border-color: var(--border-1); }

@media (min-width: 768px) {
  .ux-header__burger { display: none; }
  .ux-header__mobile { display: none; }
  .ux-header__wrap { padding: var(--sp-16) var(--sp-24); }
  .ux-header__logo { height: 50px; }
}

/* =====================================================
   Hero
   ===================================================== */
.ux-hero {
  position: relative; isolation: isolate;
  background: linear-gradient(180deg, rgba(11,15,20,0.8), rgba(11,15,20,0.85)), url('../images/hero.png') center/cover no-repeat;
  color: var(--text-0);
  text-align: center;
  padding: var(--sp-48) 0;
}
.ux-hero__title { font-size: var(--fs-2xl); margin-bottom: var(--sp-8); }
.ux-hero__subtitle { font-size: var(--fs-md); color: var(--text-1); margin: 0; }
@media (min-width: 768px) { .ux-hero { padding: var(--sp-64) 0; } .ux-hero__title { font-size: var(--fs-4xl); } .ux-hero__subtitle { font-size: var(--fs-lg); } }

/* =====================================================
   Listings + Cards
   ===================================================== */
.ux-listings { padding: var(--sp-48) 0; background: var(--bg-1); border-top: 1px solid var(--border-1); border-bottom: 1px solid var(--border-1); }
.ux-listings__title { text-align: center; color: var(--text-0); margin-bottom: var(--sp-32); font-size: var(--fs-2xl); }

/* Card */
.ux-card {
  position: relative; display: flex; flex-direction: column; gap: var(--sp-16);
  background: linear-gradient(180deg, rgba(18,25,35,0.85), rgba(18,25,35,0.95));
  border: 1px solid var(--border-2); border-radius: var(--r-16);
  padding: var(--sp-24); margin-bottom: var(--sp-24);
  box-shadow: var(--shadow-1);
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.ux-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-2); border-color: rgba(47,185,168,0.25); }

.ux-card__rank {
  position: absolute; top: var(--sp-12); left: var(--sp-12);
  background: linear-gradient(90deg, var(--brand), var(--accent));
  color: #041311; font-weight: 800; font-size: var(--fs-xs);
  padding: 4px 10px; border-radius: var(--r-full); box-shadow: 0 2px 10px rgba(0,0,0,.25);
}

.ux-card__brand { display: grid; justify-items: center; text-align: center; gap: var(--sp-8); margin-top: var(--sp-8); }
.ux-card__logo-box { width: 120px; height: 120px; border-radius: var(--r-12); display: flex; align-items: center; justify-content: center; padding: var(--sp-12); border: 1px solid var(--border-1); background: #fff; box-shadow: inset 0 1px 0 rgba(0,0,0,.05); }
.ux-card__logo { max-width: 100%; max-height: 100%; object-fit: contain; }
.ux-card__name { font-size: var(--fs-lg); color: var(--text-0); }

.ux-card__rating { display: inline-flex; align-items: center; gap: var(--sp-8); color: var(--text-2); }
.ux-card__stars { color: var(--warning); font-size: var(--fs-sm); line-height: 1; }
.ux-card__reviews { font-size: var(--fs-xs); color: var(--text-2); white-space: nowrap; }

.ux-card__info { background: rgba(255,255,255,0.02); border: 1px solid var(--border-1); border-radius: var(--r-12); padding: var(--sp-16); }
.ux-card__bonus { font-size: var(--fs-sm); color: var(--text-1); background: rgba(47,185,168,0.07); border: 1px dashed rgba(47,185,168,0.3); padding: var(--sp-12) var(--sp-16); border-radius: var(--r-12); margin-bottom: var(--sp-12); }

.ux-card__bullets { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: var(--sp-16); justify-content: flex-start; }
.ux-card__bullet { display: inline-flex; align-items: center; gap: var(--sp-8); color: var(--text-2); font-size: var(--fs-sm); }
.ux-card__bullet i { color: var(--brand-300); }

.ux-card__btn { min-width: 160px; }
.ux-card__btn:hover { box-shadow: 0 0 0 3px rgba(47,185,168,0.18), inset 0 -2px 0 rgba(0,0,0,.2); }

/* Ensure single-column on mobile */
@media (min-width: 768px) {
  .ux-card { flex-direction: row; align-items: center; }
  .ux-card__brand { width: 220px; }
  .ux-card__info { flex: 1; }
  .ux-card__cta { width: 200px; display: flex; justify-content: center; }
}

/* =====================================================
   Value props
   ===================================================== */
.ux-values { padding: var(--sp-64) 0; background: var(--bg-0); }
.ux-values__title { text-align: center; margin-bottom: var(--sp-32); font-size: var(--fs-2xl); }
.ux-values__grid { display: grid; grid-template-columns: 1fr; gap: var(--sp-24); margin-bottom: var(--sp-24); }

.ux-value { text-align: center; background: linear-gradient(180deg, rgba(18,25,35,0.6), rgba(18,25,35,0.9)); border: 1px solid var(--border-1); border-radius: var(--r-16); padding: var(--sp-24); transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease; }
.ux-value:hover { transform: translateY(-3px); box-shadow: var(--shadow-1); border-color: rgba(109,93,210,0.3); }
.ux-value__icon { width: 56px; height: 56px; display: grid; place-items: center; margin: 0 auto var(--sp-12); color: var(--text-0); background: radial-gradient(closest-side, rgba(109,93,210,0.35), rgba(47,185,168,0.2)); border-radius: var(--r-full); }
.ux-value__name { font-size: var(--fs-lg); }
.ux-value__desc { color: var(--text-2); margin: 0; }

@media (min-width: 576px) { .ux-values__grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 992px) { .ux-values__grid { grid-template-columns: repeat(3, 1fr); } }

/* =====================================================
   Criteria
   ===================================================== */
.ux-criteria { padding: var(--sp-64) 0; background: var(--bg-1); border-top: 1px solid var(--border-1); }
.ux-criteria__cols { display: grid; grid-template-columns: 1fr; gap: var(--sp-24); }
.ux-criteria__col { background: linear-gradient(180deg, rgba(18,25,35,0.6), rgba(18,25,35,0.9)); border: 1px solid var(--border-1); border-radius: var(--r-16); padding: var(--sp-24); }
.ux-criteria__title { font-size: var(--fs-xl); margin-bottom: var(--sp-16); }
.ux-criteria__p { color: var(--text-2); margin: 0 0 var(--sp-16); }

@media (min-width: 768px) { .ux-criteria__cols { grid-template-columns: repeat(2, 1fr); } }

/* =====================================================
   Footer
   ===================================================== */
.ux-footer { background: #0a0e12; color: var(--text-1); border-top: 1px solid var(--border-1); padding: var(--sp-48) 0 var(--sp-24); }
.ux-footer__grid { display: grid; grid-template-columns: 1fr; gap: var(--sp-24); margin-bottom: var(--sp-24); }
.ux-footer__block { text-align: center; }
.ux-footer__logo { height: 48px; width: auto; margin-bottom: var(--sp-12); }
.ux-footer__tag { color: var(--brand-300); font-weight: 600; margin: 0 0 var(--sp-12); }
.ux-footer__legal { color: var(--text-2); margin: 0; }
.ux-footer__title { color: var(--text-0); margin-bottom: var(--sp-12); font-size: var(--fs-lg); }
.ux-footer__list { list-style: none; padding: 0; margin: 0; display: grid; gap: var(--sp-8); }
.ux-footer__link { color: var(--text-2); }
.ux-footer__link:hover { color: var(--text-0); text-decoration: none; }
.ux-footer__badges { display: flex; flex-wrap: wrap; justify-content: center; gap: var(--sp-12); margin-bottom: var(--sp-12); }
.ux-footer__badge { height: 36px; width: auto; opacity: .9; transition: opacity .2s ease; }
.ux-footer__badge:hover { opacity: 1; }
.ux-footer__age { display: flex; justify-content: center; }
.ux-footer__age-icon { width: 44px; height: 44px; }

.ux-footer__meta { border-top: 1px solid var(--border-1); padding-top: var(--sp-16); text-align: center; }
.ux-footer__disclaimer { font-size: var(--fs-xs); color: var(--text-2); margin: 0 0 var(--sp-8); }
.ux-footer__copy { font-size: var(--fs-xs); color: var(--text-2); margin: 0; }

@media (min-width: 768px) {
  .ux-footer__grid { grid-template-columns: 2fr 1fr 1fr 1fr; text-align: left; }
  .ux-footer__block { text-align: left; }
}

/* =====================================================
   Legal/Contact legacy support (if needed later)
   ===================================================== */
/* Pages created later can reuse shared primitives above */

/* =====================================================
   Utilities
   ===================================================== */
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 1px, 1px); white-space: nowrap; border: 0; }
.text-center { text-align: center; }
.d-none { display: none !important; }

/* =====================================================
   Print
   ===================================================== */
@media print {
  .ux-header, .ux-footer, .gate-18 { display: none !important; }
  body { background: #fff; color: #000; }
  .ux-card { box-shadow: none; border: 1px solid #ccc; }
}
