/* /assets/style.css — CSGO500 (500 Casino) Theme
   Brand: dark, premium casino feel with gold accents.
   Notes:
   - System font stack (no external fonts).
   - Components: header/nav, cards, tables, buttons, breadcrumbs, FAQ, split layouts.
*/

/* === Base reset / normalize === */
*, *::before, *::after { box-sizing: border-box; }
html:focus-within { scroll-behavior: smooth; }
html, body { height: 100%; }
body { margin: 0; text-rendering: optimizeLegibility; -webkit-font-smoothing: antialiased; }
img, picture, video, canvas, svg { display: block; max-width: 100%; height: auto; }
input, button, textarea, select { font: inherit; color: inherit; }
button { background: none; border: 0; padding: 0; }
a { text-decoration: none; color: inherit; }
ul, ol { margin: 0; padding: 0; }
p, h1, h2, h3, h4 { margin: 0; }
summary { cursor: pointer; }
details > summary { list-style: none; }
details > summary::-webkit-details-marker { display: none; }

/* === Theme tokens === */
:root{
  --bg: #070A0F;
  --bg-2:#0B1020;
  --surface:#0E1630;
  --surface-2:#0B1226;

  --border: rgba(255,255,255,.10);
  --border-2: rgba(255,255,255,.14);

  --text:#E9EEFF;
  --muted: rgba(233,238,255,.72);
  --muted-2: rgba(233,238,255,.56);

  --gold:#F6C454;
  --gold-2:#FFDC83;
  --gold-3:#B8891E;

  --accent:#7C5CFF;
  --accent-2:#2BE4C3;

  --danger:#FF5A6A;

  --shadow: 0 16px 40px rgba(0,0,0,.45);
  --shadow-soft: 0 10px 24px rgba(0,0,0,.35);

  --radius: 18px;
  --radius-sm: 12px;

  --container: 1100px;
}

/* === Base === */
body{
  color: var(--text);
  background:
    radial-gradient(1000px 700px at 15% -10%, rgba(246,196,84,.18), transparent 60%),
    radial-gradient(900px 650px at 110% 0%, rgba(124,92,255,.18), transparent 60%),
    radial-gradient(900px 650px at 60% 110%, rgba(43,228,195,.12), transparent 55%),
    linear-gradient(180deg, var(--bg) 0%, #05070D 100%);
  font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Arial, "Apple Color Emoji", "Segoe UI Emoji";
  line-height: 1.55;
}

.container{
  width: min(var(--container), calc(100% - 40px));
  margin-inline: auto;
}

/* === Header / Nav === */
.site-header{
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(7,10,15,.70);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}
.header-inner{
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 0;
}
.brand{
  display: flex;
  align-items: center;
  gap: 10px;
}
.brand img{
  border-radius: 10px;
  box-shadow: 0 0 0 1px rgba(246,196,84,.22), 0 12px 28px rgba(0,0,0,.35);
}
.brand-name{ font-weight: 800; letter-spacing: .2px; }

.nav{
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}
.nav-link{
  font-size: 14px;
  color: var(--muted);
  padding: 8px 10px;
  border-radius: 999px;
  border: 1px solid transparent;
  transition: transform .15s ease, background .15s ease, border-color .15s ease, color .15s ease;
}
.nav-link:hover{
  color: var(--text);
  background: rgba(255,255,255,.06);
  border-color: rgba(246,196,84,.20);
  transform: translateY(-1px);
}

/* === Main === */
.site-main{ padding: 22px 0 46px; }

/* === Breadcrumbs === */
.breadcrumbs{ margin: 10px 0 18px; }
.breadcrumbs-list{
  list-style: none;
  display: flex;
  gap: 10px;
  align-items: center;
  flex-wrap: wrap;
  color: var(--muted-2);
  font-size: 13px;
}
.breadcrumbs-item::after{
  content: ">";
  margin-left: 10px;
  color: rgba(233,238,255,.35);
}
.breadcrumbs-item:last-child::after{ content:""; margin:0; }
.breadcrumbs-link{
  color: var(--muted);
  border-bottom: 1px dotted rgba(246,196,84,.35);
}
.breadcrumbs-link:hover{ color: var(--text); }

/* === Cards === */
.card{
  background:
    radial-gradient(1000px 700px at 15% 0%, rgba(246,196,84,.08), transparent 55%),
    linear-gradient(180deg, rgba(14,22,48,.92), rgba(11,18,38,.92));
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-soft);
  padding: 22px;
  margin: 16px 0;
}
.card.hero{
  border-color: rgba(246,196,84,.22);
  box-shadow: var(--shadow);
}

/* === Typography === */
.kicker{
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: rgba(246,196,84,.86);
  padding: 6px 10px;
  border-radius: 999px;
  border: 1px solid rgba(246,196,84,.18);
  background: rgba(246,196,84,.06);
}
.h1{ font-size: clamp(28px, 4vw, 44px); line-height: 1.12; margin: 12px 0 10px; font-weight: 900; }
.h2{ font-size: clamp(20px, 2.2vw, 28px); line-height: 1.2; margin: 0 0 10px; font-weight: 850; }
.h3{ font-size: 18px; line-height: 1.25; margin: 18px 0 8px; font-weight: 800; }

.lead{
  color: var(--muted);
  font-size: 16px;
}
.note{
  margin-top: 14px;
  color: var(--muted-2);
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(255,255,255,.08);
  border-radius: var(--radius-sm);
  padding: 12px 14px;
}

/* === Lists === */
.list{
  margin: 10px 0 0;
  padding-left: 18px;
  color: var(--muted);
}
.list li{ margin: 8px 0; }

/* === Tables === */
.table-wrap{
  overflow: auto;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(255,255,255,.08);
}
.table{
  width: 100%;
  border-collapse: collapse;
  min-width: 720px;
  background: rgba(8,12,22,.55);
}
.table thead th{
  text-align: left;
  font-size: 13px;
  letter-spacing: .02em;
  color: rgba(233,238,255,.80);
  padding: 14px;
  border-bottom: 1px solid rgba(255,255,255,.10);
  background: linear-gradient(180deg, rgba(255,255,255,.06), rgba(255,255,255,.02));
}
.table tbody td{
  padding: 14px;
  border-bottom: 1px solid rgba(255,255,255,.08);
  color: var(--muted);
  vertical-align: top;
}
.table tbody tr:hover td{
  background: rgba(246,196,84,.05);
  color: rgba(233,238,255,.86);
}
.table tbody tr:last-child td{ border-bottom: none; }

/* === Buttons === */
.btn{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-weight: 800;
  font-size: 14px;
  padding: 10px 14px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,.10);
  transition: transform .15s ease, box-shadow .15s ease, background .15s ease, border-color .15s ease;
  white-space: nowrap;
}
.btn:active{ transform: translateY(1px); }

.btn-primary{
  color: #0B0F18;
  background: linear-gradient(180deg, var(--gold-2), var(--gold));
  border-color: rgba(255,220,131,.55);
  box-shadow: 0 10px 26px rgba(246,196,84,.22);
}
.btn-primary:hover{
  transform: translateY(-1px);
  box-shadow: 0 16px 34px rgba(246,196,84,.26);
}

.btn-ghost{
  color: var(--text);
  background: rgba(255,255,255,.04);
  border-color: rgba(255,255,255,.10);
}
.btn-ghost:hover{
  background: rgba(255,255,255,.07);
  border-color: rgba(246,196,84,.22);
  transform: translateY(-1px);
}

/* Inline code */
code{
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
  font-size: .95em;
  padding: 2px 6px;
  border-radius: 8px;
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.10);
}

/* === Footer === */
.site-footer{
  border-top: 1px solid var(--border);
  background: rgba(7,10,15,.72);
  backdrop-filter: blur(10px);
}
.footer-inner{
  display: grid;
  grid-template-columns: 1.2fr .8fr .6fr;
  gap: 20px;
  padding: 26px 0;
  align-items: start;
}
.footer-brand{
  display: flex;
  align-items: center;
  gap: 10px;
}
.footer-brand img{
  border-radius: 10px;
  box-shadow: 0 0 0 1px rgba(246,196,84,.18);
}
.footer-name{ font-weight: 900; }
.footer-disclaimer{ margin: 12px 0 0; color: var(--muted-2); font-size: 13px; }
.footer-nav{ display: flex; flex-wrap: wrap; gap: 10px; }
.footer-nav a{
  color: var(--muted);
  padding: 6px 10px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,.08);
  background: rgba(255,255,255,.03);
}
.footer-nav a:hover{ color: var(--text); border-color: rgba(246,196,84,.20); }
.footer-copy{ margin: 0; color: var(--muted-2); font-size: 13px; }

/* === Layout helpers === */
.section{ margin: 22px 0; }
.section-head{ margin: 0 0 12px; }
.section-head-row{
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  margin: 0 0 12px;
}
.section-icon{
  opacity: .9;
  filter: drop-shadow(0 10px 18px rgba(0,0,0,.25));
  border-radius: 16px;
}

/* Pills */
.pill{
  display: inline-flex;
  align-items: center;
  padding: 6px 10px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,.10);
  background: rgba(255,255,255,.04);
  color: var(--muted);
  font-size: 12px;
}
.hero-badges{ display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }

/* Grids */
.grid{ display: grid; gap: 16px; }
.grid-cards{ grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.grid-steps{ grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.grid-mistakes{ grid-template-columns: 1.05fr .95fr; align-items: start; }
@media (max-width: 860px){ .grid-mistakes{ grid-template-columns: 1fr; } }

/* Hero split */
.hero-grid{ display: grid; grid-template-columns: 1.1fr .9fr; gap: 24px; align-items: center; }
@media (max-width: 860px){ .hero-grid{ grid-template-columns: 1fr; } }
.hero-actions{ display: flex; gap: 10px; flex-wrap: wrap; margin-top: 14px; }

/* Split layout */
.split-grid{ display: grid; grid-template-columns: 1.1fr .9fr; gap: 18px; align-items: center; }
@media (max-width: 860px){ .split-grid{ grid-template-columns: 1fr; } }

/* Common media styling */
.hero-media img,
.split-media img,
.final-cta-media img{
  border-radius: var(--radius);
  border: 1px solid rgba(255,255,255,.10);
  box-shadow: var(--shadow-soft);
}
.hero-media img{ box-shadow: var(--shadow); }

/* Nav cards */
.nav-card{ padding: 0; overflow: hidden; display: block; }
.nav-media{
  width: 100%;
  height: 180px;
  object-fit: cover;
  border-bottom: 1px solid rgba(255,255,255,.08);
  background: rgba(255,255,255,.03);
}
.nav-body{ padding: 18px; }

/* Code cards */
.code-card{ padding: 0; overflow: hidden; }
.card-media{
  width: 100%;
  height: 180px;
  object-fit: cover;
  border-bottom: 1px solid rgba(255,255,255,.08);
  background: rgba(255,255,255,.03);
}
.card-body{ padding: 18px; }
.card-actions{ display: flex; gap: 8px; flex-wrap: wrap; margin-top: 12px; }

/* Steps */
.step-card{ text-align: left; }
.step-icon{
  width: 54px; height: 54px;
  border-radius: 14px;
  border: 1px solid rgba(255,255,255,.10);
  background: rgba(255,255,255,.03);
  margin-bottom: 12px;
}

/* Accordion / FAQ */
.faq-grid{ display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.faq-item summary{
  font-weight: 850;
  color: rgba(233,238,255,.92);
}
.faq-item summary::after{
  content: "＋";
  float: right;
  color: rgba(246,196,84,.85);
}
.faq-item[open] summary::after{ content:"−"; }
.faq-item p{ margin-top: 10px; }

/* Final CTA */
.final-cta{ padding: 22px; }
.final-cta-grid{ display: grid; grid-template-columns: 1.1fr .9fr; gap: 18px; align-items: center; }
@media (max-width: 860px){ .final-cta-grid{ grid-template-columns: 1fr; } }

/* Reveal animation hooks (app.js supports [data-reveal]) */
[data-reveal]{ opacity: 0; transform: translateY(10px); transition: opacity .45s ease, transform .45s ease; }
.is-visible{ opacity: 1; transform: none; }

/* === Page-specific helpers (kept minimal) === */
.btn-row{ display: flex; gap: 10px; flex-wrap: wrap; margin-top: 14px; }

.grid-auto{
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 16px;
}
.grid-tight{ gap: 14px; }

/* Alternatives: choose block */
.choose-grid{
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  gap: 16px;
  align-items: start;
}
@media (max-width: 860px){ .choose-grid{ grid-template-columns: 1fr; } }
.choose-list{ padding: 18px; }
.choose-media{ padding: 0; overflow: hidden; }
.choose-media img{ width: 100%; height: auto; display: block; }

.mini-accordion{ margin-top: 14px; }

/* App: feature cards */
.feature-card{ display: flex; flex-direction: column; gap: 10px; }
.feature-icon{
  width: 54px; height: 54px;
  border-radius: 14px;
  border: 1px solid rgba(255,255,255,.10);
  background: rgba(255,255,255,.03);
}

/* === Responsive tweaks === */
@media (max-width: 980px){
  .footer-inner{ grid-template-columns: 1fr; }
  .nav{ gap: 6px; }
  .nav-link{ padding: 7px 9px; }
  .card{ padding: 18px; }
}
@media (max-width: 560px){
  .header-inner{ flex-direction: column; align-items: flex-start; }
  .table{ min-width: 620px; }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce){
  *{ scroll-behavior: auto; }
  .btn, .nav-link{ transition: none; }
}
