/*
  Xon Bet Casino - Dark Theme Stylesheet
  - Semantic, accessible, mobile-first responsive CSS
  - Detailed comments per section and component
*/

/* CSS Reset (minimal) and variables */
:root {
  --bg: #0b0f16;          /* page background */
  --bg-2: #0f1623;        /* elevated surfaces */
  --text: #e7eef8;        /* primary text */
  --muted: #9bb0c9;       /* secondary text */
  --brand: #4f8cff;       /* primary brand */
  --brand-2: #7aa8ff;     /* brand hover */
  --accent: #ffb649;      /* accent color for highlights */
  --danger: #ff5a5f;      /* danger */
  --success: #2ecc71;     /* success */
  --border: #1b2536;      /* borders */
  --overlay: rgba(0,0,0,.5); /* overlay for hero */
  --container: 1200px;    /* max content width */
  --radius: 12px;         /* default radius */
  --shadow: 0 8px 24px rgba(0,0,0,.3);
}

/* Global reset and base */
* { box-sizing: border-box; }
html, body { height: 100%; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Ubuntu, Cantarell, "Helvetica Neue", Arial, "Noto Sans", "Apple Color Emoji", "Segoe UI Emoji";
  line-height: 1.6;
}

img { max-width: 100%; height: auto; display: block; }

/* Accessibility helpers */
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}
.skip-link {
  position: absolute; left: -9999px; top: auto; width: 1px; height: 1px; overflow: hidden;
}
.skip-link:focus {
  position: fixed; left: 1rem; top: 1rem; width: auto; height: auto; padding: .5rem .75rem; background: var(--brand); color: #000; border-radius: 6px; z-index: 1000;
}

/* Layout containers */
.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 16px;
}

.section { padding: 56px 0; }

/* Typography */
h1, h2, h3, h4 { line-height: 1.25; margin: 0 0 16px; }
h1 { font-size: clamp(28px, 4vw, 44px); }
h2 { font-size: clamp(22px, 3vw, 32px); margin-top: 8px; }
h3 { font-size: clamp(18px, 2.5vw, 24px); }
p { margin: 0 0 16px; color: var(--text); }
.section-lead { color: var(--muted); margin-top: -8px; margin-bottom: 24px; }

/* Header and Navigation */
.site-header {
  position: sticky; top: 0; z-index: 50; backdrop-filter: saturate(120%) blur(6px);
  background: rgba(11,15,22, .75); border-bottom: 1px solid var(--border);
}
.header-inner {
  display: flex; align-items: center; gap: 12px; padding: 6px 0;
}
.brand { display: inline-flex; align-items: center; gap: 8px; text-decoration: none; }
.brand img { height: 26px; width: auto; }
.primary-nav { margin-left: auto; }
.nav-list { list-style: none; display: none; gap: 12px; padding: 0; margin: 0; }
.nav-list a { color: var(--muted); text-decoration: none; padding: 4px 8px; border-radius: 8px; }
.nav-list a:hover { color: var(--text); background: rgba(255,255,255,.06); }
.auth-actions { display: flex; gap: 6px; margin-left: 8px; }

@media (min-width: 900px) {
  .nav-list { display: flex; }
}

/* Breadcrumbs */
.breadcrumbs { border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); background: #0d1420; }
.breadcrumbs .container { display: flex; gap: 8px; padding: 8px 16px; flex-wrap: wrap; }
.breadcrumbs a { color: var(--muted); text-decoration: none; }
.breadcrumbs a:hover { color: var(--text); }
.breadcrumbs li { list-style: none; position: relative; padding-right: 18px; }
.breadcrumbs li + li::before { content: "/"; color: var(--muted); position: absolute; left: -10px; }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; border-radius: 10px; text-decoration: none; font-weight: 600; }
.btn-link { padding: 6px 8px; }
.btn-outline { padding: 6px 12px; border: 1px solid var(--border); color: var(--text); background: transparent; }
.btn-outline:hover { border-color: var(--brand); color: var(--brand-2); }
.btn-primary { padding: 8px 14px; color: #0b0f16; background: linear-gradient(180deg, var(--brand), var(--brand-2)); border: 0; box-shadow: var(--shadow); }
.btn-primary:hover { transform: translateY(-1px); filter: saturate(1.1); }
.btn-lg { padding: 12px 20px; font-size: 1.05rem; }

/* Hero Banner */
.hero {
  position: relative; min-height: calc(var(--vh, 1vh) * 100); display: grid; place-items: center; overflow: hidden; border-bottom: 1px solid var(--border);
}
.hero-media {
  position: absolute; inset: 0; background: url('./img/baner/baner.png') center/cover no-repeat;
}
.hero-overlay { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(7,10,16,.6), rgba(7,10,16,.85)); }
.hero-content {
  position: relative; z-index: 1; text-align: center; max-width: 900px; padding: 24px; border-radius: var(--radius);
  background: rgba(13, 20, 32, .35); /* semi-transparent block */
  box-shadow: 0 10px 30px rgba(0,0,0,.35);
}
.hero-subtitle { color: var(--muted); margin-bottom: 18px; }
.hero-cta { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }

/* Slots Grid */
.slots-grid { list-style: none; display: grid; gap: 16px; padding: 0; margin: 0; grid-template-columns: repeat(2, 1fr); }
.slot { display: block; border-radius: 12px; overflow: hidden; border: 1px solid var(--border); background: #0e1522; }
.slot img { aspect-ratio: 3/2; object-fit: cover; transition: transform .25s ease; }
.slot:hover img { transform: scale(1.03); }

@media (min-width: 640px) {
  .slots-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (min-width: 900px) {
  .slots-grid { grid-template-columns: repeat(4, 1fr); }
}
@media (min-width: 1200px) {
  .slots-grid { grid-template-columns: repeat(6, 1fr); }
}

/* Article content */
.prose { color: var(--text); }
.prose a { color: var(--brand-2); }
.prose ol, .prose ul { padding-left: 20px; }

/* Responsive Tables: transform to card view on small screens */
.responsive-table { border: 1px solid var(--border); border-radius: 12px; overflow: hidden; background: var(--bg-2); margin: 16px 0; }
.responsive-table table { width: 100%; border-collapse: collapse; }
.responsive-table thead { background: #0d1420; }
.responsive-table th, .responsive-table td { text-align: left; padding: 12px; border-bottom: 1px solid var(--border); color: var(--text); }
.responsive-table th { color: var(--muted); font-weight: 600; }

@media (max-width: 700px) {
  .responsive-table thead { display: none; }
  .responsive-table tr { display: grid; grid-template-columns: 1fr; padding: 8px 12px; }
  .responsive-table td { display: grid; grid-template-columns: 140px 1fr; gap: 8px; border: 0; border-bottom: 1px solid var(--border); }
  .responsive-table td:last-child { border-bottom: 0; }
  .responsive-table td::before { content: attr(data-label); color: var(--muted); }
}

/* Footer */
.site-footer { border-top: 1px solid var(--border); background: #0c121d; }
.payments { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 14px; padding: 24px 0; list-style: none; margin: 0; align-items: center; }
.payments img { filter: grayscale(.15); opacity: .95; margin: 0 auto; }
.footer-meta { display: flex; gap: 12px; justify-content: space-between; align-items: center; padding: 12px 0 24px; border-top: 1px solid var(--border); color: var(--muted); flex-wrap: wrap; }
.footer-meta nav { display: flex; gap: 12px; }
.footer-meta a { color: var(--muted); text-decoration: none; }
.footer-meta a:hover { color: var(--text); }

@media (min-width: 640px) {
  .payments { grid-template-columns: repeat(4, minmax(0,1fr)); }
}
@media (min-width: 900px) {
  .payments { grid-template-columns: repeat(8, minmax(0,1fr)); }
}
@media (min-width: 1200px) {
  .payments { grid-template-columns: repeat(10, minmax(0,1fr)); }
}

/* Focus styles */
:where(a, button, [role="button"]) { outline: none; }
:where(a, button, [role="button"]):focus-visible { box-shadow: 0 0 0 3px rgba(79,140,255,.45); border-radius: 10px; }


