/*
  Maggico Casino - Dark Theme Stylesheet
  Theme colors:
    - Header: #3f0072
    - Background: #1b0033
    - Accent: #8a2be2 (buttons/links)
  Structure:
    1) Reset & base
    2) Layout helpers
    3) Header & navigation
    4) Breadcrumbs
    5) Hero banner
    6) Sections & content
    7) Tables (responsive)
    8) Slots grid
    9) Footer & payments
    10) Utilities
*/

/* 1) Reset & base */
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Ubuntu, Cantarell, Noto Sans, Arial, "Apple Color Emoji", "Segoe UI Emoji";
  line-height: 1.6;
  color: #f3e9ff;
  background: #1b0033;
}
a { color: #caa8ff; text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; height: auto; display: block; }

.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: #8a2be2; color: #fff; z-index: 10000; border-radius: .25rem;
}

/* 2) Layout helpers */
.container { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 16px; }
.section { padding: 40px 0; }
.section-lead { color: #d7c6ff; margin-top: -8px; margin-bottom: 16px; }

/* Buttons */
.btn { display: inline-block; padding: 12px 20px; border-radius: 8px; font-weight: 700; letter-spacing: .2px; transition: transform .12s ease, opacity .2s ease, background .2s ease, border-color .2s ease; }
.btn:focus { outline: 2px solid #caa8ff; outline-offset: 2px; }
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn-primary { background: #8a2be2; color: #fff; }
.btn-primary:hover { background: #9c44ff; }
.btn-secondary { background: rgba(255,255,255,.08); color: #fff; border: 1px solid rgba(255,255,255,.14); }
.btn-secondary:hover { background: rgba(255,255,255,.14); }
.btn-outline { background: transparent; color: #caa8ff; border: 2px solid #caa8ff; }
.btn-outline:hover { background: rgba(202,168,255,.12); }
.btn-cta { background: #ff5c8a; color: #fff; }
.btn-cta:hover { background: #ff6a98; }

/* 3) Header & navigation */
.site-header { position: sticky; top: 0; z-index: 500; background: #3f0072; box-shadow: 0 2px 10px rgba(0,0,0,.3); }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 12px 0; }
.brand { display: inline-flex; align-items: center; gap: 12px; }
.primary-nav ul { list-style: none; display: flex; gap: 16px; padding: 0; margin: 0; }
.primary-nav a { color: #f3e9ff; font-weight: 600; }

.nav-toggle { display: none; background: rgba(255,255,255,.12); color: #fff; border: 0; padding: 10px 12px; border-radius: 8px; }

@media (max-width: 900px) {
  /* Mobile layout: hide nav links and burger */
  .primary-nav { display: none; }
  .primary-nav ul { display: none; }
  .nav-toggle { display: none; }
}

/* 4) Breadcrumbs */
.breadcrumbs { background: #2a004b; border-top: 1px solid rgba(255,255,255,.08); border-bottom: 1px solid rgba(255,255,255,.08); }
.breadcrumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; align-items: center; padding: 10px 16px; margin: 0; }
.breadcrumbs a { color: #caa8ff; }
.breadcrumbs li { color: #a78bfa; }
.breadcrumbs li + li::before { content: "/"; margin: 0 6px; color: #7e22ce; }

/* 5) Hero banner */
.hero { position: relative; overflow: hidden; }
.hero picture, .hero img { display: block; width: 100%; height: auto; }
.hero-overlay { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 16px; padding: 24px; text-align: center; background: rgba(14, 0, 27, 0.35); }
.hero-title { margin: 0; font-size: clamp(20px, 4vw, 40px); line-height: 1.2; text-shadow: 0 2px 20px rgba(0,0,0,.5); }
.hero-subtitle { margin: 0; max-width: 780px; color: #e7dbff; opacity: .95; }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; justify-content: center; }

/* 6) Sections & content */
.content h1, .content h2, .content h3, .content h4 { color: #ffffff; }
.content p { color: #e8dbff; }
.content { display: grid; gap: 12px; }

.cta-section { background: linear-gradient(180deg, rgba(138,43,226,.08), rgba(138,43,226,.02)); padding: 48px 0; border-top: 1px solid rgba(255,255,255,.06); border-bottom: 1px solid rgba(255,255,255,.06); }
.cta-inner { display: grid; gap: 12px; text-align: center; }
.cta-actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; margin-top: 8px; }

/* 7) Tables (responsive) */
.table-responsive { width: 100%; overflow-x: auto; border: 1px solid rgba(255,255,255,.08); border-radius: 12px; background: rgba(255,255,255,.03); }
table { width: 100%; border-collapse: collapse; min-width: 640px; }
thead th { position: sticky; top: 0; background: #2a004b; color: #eedeff; text-align: left; padding: 12px; font-size: 14px; }
tbody td { padding: 12px; border-top: 1px solid rgba(255,255,255,.08); color: #f6edff; }
tbody tr:nth-child(odd) { background: rgba(255,255,255,.02); }

/* Mobile table: stacked labels */
@media (max-width: 700px) {
  .table-responsive { overflow: visible; }
  table { min-width: 0; display: block; }
  thead { display: none; }
  tbody { display: grid; gap: 12px; }
  tbody tr { display: grid; gap: 8px; padding: 12px; border: 1px solid rgba(255,255,255,.08); border-radius: 12px; background: rgba(255,255,255,.03); }
  tbody td { display: grid; grid-template-columns: 160px 1fr; align-items: start; border: 0; padding: 6px 0; }
  tbody td::before { content: attr(data-label); color: #caa8ff; font-weight: 600; padding-right: 8px; }
}

/* 8) Slots grid */
.slots-grid { list-style: none; padding: 0; margin: 16px 0 0; display: grid; grid-template-columns: repeat(6, 1fr); gap: 12px; }
.slots-grid li { background: rgba(255,255,255,.04); border: 1px solid rgba(255,255,255,.08); border-radius: 10px; padding: 8px; }
.slots-cta { margin-top: 16px; display: flex; justify-content: center; }
@media (max-width: 1024px) { .slots-grid { grid-template-columns: repeat(4, 1fr); } }
@media (max-width: 700px) { .slots-grid { grid-template-columns: repeat(2, 1fr); } }

/* Center Popular Slots block */
h2#popular-slots { text-align: center; }
.section h2#popular-slots + .section-lead { text-align: center; }
.slots-grid { justify-items: center; margin-left: auto; margin-right: auto; }

/* Temporary highlight to show placement; remove when approved */
.highlight-guide { outline: 4px solid rgba(0, 255, 0, .75); outline-offset: -2px; border-radius: 8px; padding-top: 12px; padding-bottom: 12px; }

/* 9) Footer & payments */
.site-footer { margin-top: 40px; background: #2a004b; border-top: 2px solid #3f0072; }
.footer-top { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 16px 0; }
.payments { padding: 12px 0 20px; }
.payments-grid { list-style: none; display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 12px; padding: 0; margin: 0; align-items: center; }
.payments-grid li { background: rgba(255,255,255,.03); border: 1px solid rgba(255,255,255,.08); border-radius: 10px; padding: 6px; display: flex; align-items: center; justify-content: center; }
.footer-bottom { padding: 12px 0 24px; color: #d7c6ff; opacity: .9; }
@media (max-width: 900px) { .payments-grid { grid-template-columns: repeat(4, 1fr); } .footer-top { flex-direction: column; align-items: flex-start; } }
@media (max-width: 600px) { .payments-grid { grid-template-columns: repeat(3, 1fr); } }

/* 10) Utilities */
.hidden { display: none !important; }

/* Mobile left/right indents across text and footer */
@media (max-width: 700px) {
  .container { padding-left: 20px; padding-right: 20px; }
  .site-footer .container { padding-left: 20px; padding-right: 20px; }
}


