/* ==========================================================================
   Le Bandit / Expekt – Crazy Time
   Custom styles (complements Tailwind CDN utilities)
   ========================================================================== */

:root {
  --color-primary: #974900;
  --color-primary-container: #ff7f00;
  --color-on-primary: #ffffff;
  --color-on-surface: #1a1c1c;
  --color-footer: #121212;
}

/* Material Symbols default axes */
.material-symbols-outlined {
  font-variation-settings: 'FILL' 0, 'wght' 400, 'GRAD' 0, 'opsz' 24;
}
.material-symbols-outlined.is-filled {
  font-variation-settings: 'FILL' 1;
}

/* Hide scrollbar on horizontal result strips */
.hide-scroll::-webkit-scrollbar { display: none; }
.hide-scroll { -ms-overflow-style: none; scrollbar-width: none; }

/* Subtle dotted background used on the mobile card canvas */
.bg-pattern {
  background-image: radial-gradient(#e5e5e5 1px, transparent 1px);
  background-size: 20px 20px;
}

/* --------------------------------------------------------------------------
   Accessible FAQ accordion (native <details>/<summary>)
   -------------------------------------------------------------------------- */
.faq-item > summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  font-weight: 700;
  color: var(--color-on-surface);
}

.faq-item > summary::-webkit-details-marker { display: none; }

/* Chevron indicator */
.faq-item > summary::after {
  content: 'expand_more';
  font-family: 'Material Symbols Outlined';
  font-size: 1.5rem;
  color: var(--color-primary-container);
  transition: transform 0.2s ease;
  flex: none;
}
.faq-item[open] > summary::after {
  transform: rotate(180deg);
}
.faq-item > .faq-answer {
  padding-bottom: 1.5rem;
  color: #584235;
  font-size: 0.875rem;
  line-height: 1.6;
}

/* Smooth open animation where supported (progressive enhancement) */
@supports (interpolate-size: allow-keywords) {
  :root { interpolate-size: allow-keywords; }
  .faq-item::details-content {
    height: 0;
    overflow: clip;
    transition: height 0.25s ease, content-visibility 0.25s allow-discrete;
  }
  .faq-item[open]::details-content {
    height: auto;
  }
}

/* --------------------------------------------------------------------------
   Focus visibility for keyboard users
   -------------------------------------------------------------------------- */
a:focus-visible,
button:focus-visible,
summary:focus-visible {
  outline: 3px solid var(--color-primary-container);
  outline-offset: 2px;
  border-radius: 4px;
}

/* Respect reduced-motion preferences */
@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* --------------------------------------------------------------------------
   Off-canvas mobile menu (toggled by JS, progressive enhancement)
   -------------------------------------------------------------------------- */
.mobile-menu {
  transform: translateX(-100%);
  transition: transform 0.25s ease;
}
.mobile-menu.is-open {
  transform: translateX(0);
}
.menu-backdrop {
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s ease, visibility 0.25s ease;
}
.menu-backdrop.is-open {
  opacity: 1;
  visibility: visible;
}

/* --------------------------------------------------------------------------
   Data tables (spec sheets, RTP, paytable, free-spin tiers)
   -------------------------------------------------------------------------- */
.data-table {
  border-collapse: collapse;
  min-width: 100%;
}
.data-table th,
.data-table td {
  padding: 0.625rem 0.75rem;
  text-align: left;
  vertical-align: top;
  border-bottom: 1px solid #eeeeee;
}
.data-table thead th {
  font-family: 'Inter', system-ui, sans-serif;
  font-weight: 700;
  color: var(--color-on-surface);
  background: #f3f3f3;
  border-bottom: 2px solid #dfc0af;
  white-space: nowrap;
}
.data-table tbody th[scope='row'] {
  font-weight: 600;
  color: var(--color-on-surface);
  white-space: nowrap;
}
.data-table td { color: #584235; }
.data-table tbody tr:last-child th,
.data-table tbody tr:last-child td { border-bottom: 0; }
.data-table tbody tr:nth-child(even) { background: rgba(243, 243, 243, 0.5); }
.data-table .text-right { text-align: right; }


