/*
  Maggico Casino — Dark Theme Stylesheet
  - Global dark theme, semantic structure, responsive layout
  - Title color: #3f0072 (as requested)
  - Background color: #1b0033 (as requested)
  Sections:
    1) CSS Reset & Base
    2) Theming & Typography
    3) Layout Utilities
    4) Header & Navigation
    5) Breadcrumbs
    6) Hero Banner + Overlay (semi-transparent)
    7) Slots Grid (12 items, 6 rows)
    8) Content & Tables (responsive)
    9) Footer & Payment Logos
    10) Accessibility helpers
*/

/* 1) Reset & Base */
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background-color: #1b0033;
  color: #e9d9ff;
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Ubuntu, Cantarell, Noto Sans, Arial, "Apple Color Emoji", "Segoe UI Emoji";
  line-height: 1.6;
}
a { color: #bda7ff; text-decoration: none; }
a:hover, a:focus { text-decoration: underline; }
img { max-width: 100%; height: auto; display: block; }

/* 2) Theming & Typography */
:root {
  --bg: #1b0033;
  --text: #e9d9ff;
  --muted: #bfa6e6;
  --title: #3f0072; /* requested title color */
  --primary: #7a3cff;
  --primary-contrast: #ffffff;
  --surface: #2a0a4d;
  --surface-2: #22083f;
  --overlay: rgba(255, 255, 255, 0.08); /* semi-transparent overlay */
  --border: rgba(255,255,255,0.12);
}

h1, h2, h3 { margin: 1.25rem 0 0.75rem; line-height: 1.25; }
h1 { color: var(--text); font-size: 1.875rem; }
h2 { color: #d0bfff; font-size: 1.375rem; }
h3 { color: #d7c5ff; font-size: 1.125rem; }
p { margin: 0.75rem 0; }

/* 3) Layout Utilities */
.container {
  width: min(1120px, 92vw);
  margin: 0 auto;
}
.visually-hidden {
  position: absolute !important;
  height: 1px; width: 1px;
  overflow: hidden; clip: rect(1px, 1px, 1px, 1px);
  white-space: nowrap; border: 0; padding: 0; margin: -1px;
}
.skip-link {
  position: absolute; left: -9999px; top: auto; width: 1px; height: 1px; overflow: hidden;
}
.skip-link:focus { left: 1rem; top: 1rem; width: auto; height: auto; background: var(--surface); color: var(--text); padding: 0.5rem 0.75rem; border-radius: 0.375rem; }

.btn { display: inline-block; border-radius: 0.5rem; padding: 0.6rem 1rem; font-weight: 700; border: 1px solid transparent; }
.btn-primary { background: linear-gradient(90deg, #9b5cff, #7a3cff); color: var(--primary-contrast); box-shadow: 0 6px 18px rgba(122,60,255,0.3); }
.btn-primary:hover, .btn-primary:focus { filter: brightness(1.06); box-shadow: 0 8px 22px rgba(122,60,255,0.4); }
.btn-secondary { background: transparent; color: var(--text); border-color: var(--border); }
.btn-secondary:hover, .btn-secondary:focus { background: rgba(255,255,255,0.06); }

/* 4) Header & Navigation */
.site-header { position: sticky; top: 0; z-index: 20; background: #3f0072; border-bottom: 1px solid var(--border); }
.header-inner { display: flex; align-items: center; justify-content: space-between; padding: 0.6rem 0; }
.brand img { filter: drop-shadow(0 1px 0 rgba(0,0,0,0.25)); }
.primary-nav .nav-list { display: flex; align-items: center; gap: 1rem; list-style: none; margin: 0; padding: 0; }
.primary-nav a { padding: 0.4rem 0.5rem; border-radius: 0.375rem; }
.primary-nav a:focus { outline: 2px solid #9d7dff; outline-offset: 2px; }

/* 5) Breadcrumbs */
.breadcrumbs { border-bottom: 1px solid var(--border); background: var(--surface-2); }
.breadcrumbs ol { display: flex; gap: 0.5rem; flex-wrap: wrap; padding: 0.5rem 0; margin: 0; list-style: none; }
.breadcrumbs li { color: var(--muted); }
.breadcrumbs li+li::before { content: "/"; margin: 0 0.5rem; color: var(--muted); }

/* 6) Hero Banner + Overlay */
.hero { position: relative; }
.hero-media { position: relative; margin: 0; overflow: hidden; }
.hero-media img { width: 100%; height: auto; min-height: 300px; max-height: 600px; object-fit: cover; }
.hero-overlay { position: absolute; inset: 0; display: grid; place-items: center; padding: 1rem; }
.overlay-card {
  background: var(--overlay);
  backdrop-filter: blur(6px);
  border: 1px solid var(--border);
  border-radius: 0.75rem;
  padding: 1rem 1.25rem;
  max-width: 32rem;
  text-align: center;
}
.overlay-title { margin: 0 0 0.25rem; font-size: 1.25rem; color: #f5ecff; }
.overlay-text { margin: 0 0 0.75rem; color: #e9d9ff; opacity: 0.9; }
.overlay-actions { display: flex; gap: 0.75rem; justify-content: center; flex-wrap: wrap; }

.mobile-indicator {
  position: absolute; bottom: 0.75rem; left: 50%; transform: translateX(-50%);
  background: #0f0720; border: 1px solid var(--border); padding: 0.35rem 0.65rem; border-radius: 999px; font-size: 0.85rem; color: #d8caff;
}

/* 7) Slots Grid (12 items, 6 rows) */
.popular-slots { padding: 1.25rem 0 0.5rem; }
.popular-slots .section-intro { color: var(--muted); margin-top: -0.25rem; }
.slots-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0.75rem; padding: 0; margin: 0.75rem 0 0; list-style: none; justify-items: center; }
.slot-card { border-radius: 0.75rem; overflow: hidden; border: 1px solid var(--border); background: var(--surface); max-width: 100%; }
.slot-card img { width: 100%; height: auto; border-radius: 0.75rem; }

/* 8) Content & Responsive Tables */
.content { padding: 1rem 0 2rem; }
.content ul { padding-left: 1.125rem; }
.content li { margin: 0.35rem 0; }

table { width: 100%; border-collapse: collapse; margin: 0.75rem 0 1rem; }
thead { background: #2f1555; }
th, td { padding: 0.65rem 0.6rem; text-align: left; border-bottom: 1px solid var(--border); }
th { color: #f3eaff; font-weight: 700; }
td { color: #efe4ff; }

/* Responsive table behavior: stack rows on small screens */
@media (max-width: 720px) {
  .responsive-table thead { position: absolute; clip: rect(1px,1px,1px,1px); height: 1px; width: 1px; overflow: hidden; }
  .responsive-table tr { display: block; border: 1px solid var(--border); border-radius: 0.5rem; background: var(--surface-2); margin: 0.5rem 0; padding: 0.25rem 0; }
  .responsive-table td { display: grid; grid-template-columns: 44% 56%; gap: 0.5rem; border: none; }
  .responsive-table td::before { content: attr(data-label); color: var(--muted); font-weight: 600; }
}

/* 9) Footer & Payment Logos */
.site-footer { border-top: 1px solid var(--border); background: linear-gradient(180deg, #1b0033 0%, #16002b 100%); margin-top: 2rem; }
.footer-inner { padding: 1.25rem 0; }
.payments h2 { margin-top: 0.25rem; }
.payments-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(90px, 1fr)); gap: 0.75rem; padding: 0; margin: 0.75rem 0 1rem; list-style: none; align-items: center; }
.payments-grid img { filter: grayscale(12%) brightness(1.08); opacity: 0.95; }
.payments-grid img:hover { filter: grayscale(0%) brightness(1.1); opacity: 1; }
.copyright { color: var(--muted); display: block; padding-top: 0.25rem; }

/* 10) Accessibility helpers */
:focus-visible { outline: 2px solid #a689ff; outline-offset: 2px; }

/* Larger screens adjustments (keep slots as 2 columns to maintain 6 rows) */
@media (min-width: 1024px) {
  .overlay-title { font-size: 1.5rem; }
  .overlay-card { padding: 1.25rem 1.5rem; }
  .slots-grid { grid-template-columns: repeat(6, 1fr); }
}


