/* ==========================================================================
   JiliCrown Design System - 2026 iGaming UI/UX
   Palette: Royal Casino Night (#0B0813, #150F24, #1E1633)
   Brand Accents: Crown Gold (#FA5D00, #FFA800, #FFDF00)
   Contrast & Highlights: Neon Cyan (#00E5FF), Jade Win (#00E676)
   ========================================================================== */

:root {
  --bg-base: #0B0813;
  --bg-surface: #150F24;
  --bg-card: rgba(27, 20, 44, 0.75);
  --bg-card-hover: rgba(38, 28, 62, 0.88);
  --border-subtle: rgba(255, 168, 0, 0.18);
  --border-glow: rgba(250, 93, 0, 0.45);

  --brand-orange: #FA5D00;
  --brand-gold: #FFA800;
  --brand-yellow: #FFDF00;
  --brand-cyan: #00E5FF;
  --brand-green: #00E676;

  --text-main: #FFFFFF;
  --text-muted: #B3ADC5;
  --text-dim: #7B7393;

  --gradient-gold: linear-gradient(135deg, #FFDF00 0%, #FFA800 50%, #FA5D00 100%);
  --gradient-btn: linear-gradient(135deg, #FA5D00 0%, #FFA800 100%);
  --gradient-card: linear-gradient(180deg, rgba(32, 23, 53, 0.8) 0%, rgba(17, 12, 30, 0.95) 100%);
  --gradient-glass: linear-gradient(135deg, rgba(255, 255, 255, 0.05) 0%, rgba(255, 255, 255, 0.01) 100%);

  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-pill: 9999px;

  --shadow-gold: 0 10px 30px -10px rgba(250, 93, 0, 0.4);
  --shadow-card: 0 15px 35px -5px rgba(0, 0, 0, 0.5);

  --font-heading: 'Outfit', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
}

/* Reset & Base */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  background-color: var(--bg-base);
  color: var(--text-main);
  font-family: var(--font-body);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  position: relative;
}

/* Flashy Casino Background Sparkle & Ambient Glow */
body::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: 
    radial-gradient(circle at 15% 25%, rgba(250, 93, 0, 0.12) 0%, transparent 40%),
    radial-gradient(circle at 85% 75%, rgba(138, 43, 226, 0.14) 0%, transparent 45%),
    radial-gradient(circle at 50% 50%, rgba(0, 229, 255, 0.05) 0%, transparent 60%);
  pointer-events: none;
  z-index: -2;
}

/* Moving Shimmer Effect */
@keyframes bgShimmer {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

.ambient-sparkle {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='%23ffa800' fill-opacity='0.03' fill-rule='evenodd'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/svg%3E");
  pointer-events: none;
  z-index: -1;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 800;
  color: #FFFFFF;
  line-height: 1.25;
}

h1 {
  font-size: clamp(2rem, 4.5vw, 3.2rem);
  letter-spacing: -0.5px;
}

h2 {
  font-size: clamp(1.5rem, 3.2vw, 2.3rem);
  margin-bottom: 1.2rem;
  position: relative;
  display: inline-block;
}

h2.section-title::after {
  content: '';
  position: absolute;
  bottom: -6px;
  left: 0;
  width: 50px;
  height: 3px;
  background: var(--gradient-gold);
  border-radius: var(--radius-pill);
}

h3 {
  font-size: 1.25rem;
  margin-bottom: 0.5rem;
}

p {
  color: var(--text-muted);
  font-size: 1rem;
  margin-bottom: 1rem;
}

a {
  color: var(--brand-gold);
  text-decoration: none;
  transition: all 0.25s ease;
}

a:hover {
  color: var(--brand-yellow);
  text-shadow: 0 0 8px rgba(255, 168, 0, 0.4);
}

/* Container */
.container {
  width: 100%;
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 1.25rem;
}

/* ==========================================================================
   Header & Navigation (Max 6 Category Tabs)
   ========================================================================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(11, 8, 19, 0.88);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border-subtle);
  transition: all 0.3s ease;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}

.brand-logo-link {
  display: flex;
  align-items: center;
  height: 48px;
}

.brand-logo-img {
  height: 42px;
  width: auto;
  object-fit: contain;
}

/* Desktop Category Navigation (Max 6) */
.header-nav {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.nav-link {
  padding: 0.6rem 1rem;
  font-size: 0.92rem;
  font-weight: 600;
  color: #E2DCF0;
  border-radius: var(--radius-sm);
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.nav-link:hover, .nav-link.active {
  color: #FFFFFF;
  background: rgba(250, 93, 0, 0.15);
  border: 1px solid rgba(250, 93, 0, 0.3);
}

.header-cta-group {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

/* Action Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.65rem 1.4rem;
  font-size: 0.95rem;
  font-weight: 700;
  border-radius: var(--radius-pill);
  cursor: pointer;
  border: none;
  transition: all 0.3s cubic-bezier(0.2, 0.8, 0.2, 1);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.btn-primary {
  background: var(--gradient-btn);
  color: #FFFFFF;
  box-shadow: var(--shadow-gold);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 28px -5px rgba(250, 93, 0, 0.65);
  color: #FFFFFF;
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.08);
  color: #FFFFFF;
  border: 1px solid rgba(255, 255, 255, 0.15);
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.15);
  transform: translateY(-2px);
  color: #FFFFFF;
}

/* Mobile Menu Toggle */
.mobile-toggle {
  display: none;
  background: none;
  border: none;
  color: #FFFFFF;
  font-size: 1.5rem;
  cursor: pointer;
}

/* ==========================================================================
   Hero Container with Casino Image Background
   ========================================================================== */
.hero-casino-container {
  position: relative;
  min-height: 480px;
  display: flex;
  align-items: center;
  padding: 4.5rem 0;
  background-image: linear-gradient(180deg, rgba(11, 8, 19, 0.75) 0%, rgba(11, 8, 19, 0.92) 100%), url('/public/images/hero-casino-bg.webp');
  background-size: cover;
  background-position: center;
  border-bottom: 1px solid var(--border-subtle);
  overflow: hidden;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.4rem 1rem;
  background: rgba(250, 93, 0, 0.2);
  border: 1px solid var(--brand-orange);
  border-radius: var(--radius-pill);
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--brand-gold);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 1.25rem;
}

.hero-text {
  max-width: 680px;
}

.hero-title-highlight {
  background: var(--gradient-gold);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-lead {
  font-size: 1.15rem;
  color: #E2DCF0;
  margin: 1.25rem 0 2rem 0;
  line-height: 1.7;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

/* Trust Pill Indicators (E-E-A-T) */
.eeat-trust-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1.5rem;
  margin-top: 2.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.trust-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.85rem;
  color: var(--text-muted);
  font-weight: 600;
}

.trust-item svg {
  color: var(--brand-green);
  flex-shrink: 0;
}

/* ==========================================================================
   Interactive 3x2 Grid Box & Placecard Components
   ========================================================================== */
.section-pad {
  padding: 4rem 0;
  position: relative;
}

.section-header-row {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: 2.2rem;
  flex-wrap: wrap;
  gap: 1rem;
}

/* Strict 3x2 Grid System */
.grid-3x2 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

/* Game & Spoke Card Component */
.card-game {
  background: var(--gradient-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: all 0.3s cubic-bezier(0.2, 0.8, 0.2, 1);
  position: relative;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-card);
}

.card-game:hover {
  transform: translateY(-6px);
  border-color: var(--brand-gold);
  box-shadow: 0 16px 36px -10px rgba(250, 93, 0, 0.35);
}

.card-media {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: #1B142C;
}

.card-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.card-game:hover .card-img {
  transform: scale(1.08);
}

.card-badge {
  position: absolute;
  top: 12px;
  right: 12px;
  background: rgba(11, 8, 19, 0.85);
  backdrop-filter: blur(8px);
  border: 1px solid var(--brand-gold);
  color: var(--brand-gold);
  padding: 0.25rem 0.65rem;
  font-size: 0.75rem;
  font-weight: 700;
  border-radius: var(--radius-pill);
}

.card-body {
  padding: 1.35rem;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.card-title {
  font-size: 1.15rem;
  color: #FFFFFF;
  margin-bottom: 0.6rem;
  transition: color 0.2s ease;
}

.card-game:hover .card-title {
  color: var(--brand-gold);
}

.card-desc {
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.5;
  margin-bottom: 1.25rem;
  flex-grow: 1;
}

.card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 0.85rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 0.82rem;
  font-weight: 600;
}

.card-tag {
  color: var(--brand-cyan);
}

.card-btn-link {
  color: var(--brand-gold);
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
}

/* ==========================================================================
   Interactive Tab & Pagination Component
   ========================================================================== */
.tabs-control {
  display: flex;
  gap: 0.5rem;
  background: rgba(255, 255, 255, 0.04);
  padding: 0.35rem;
  border-radius: var(--radius-pill);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.tab-btn {
  padding: 0.5rem 1.1rem;
  background: transparent;
  border: none;
  color: var(--text-muted);
  font-size: 0.85rem;
  font-weight: 600;
  border-radius: var(--radius-pill);
  cursor: pointer;
  transition: all 0.2s ease;
}

.tab-btn.active, .tab-btn:hover {
  background: var(--brand-orange);
  color: #FFFFFF;
}

.pagination-wrapper {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.5rem;
  margin-top: 2.5rem;
}

.page-btn {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #FFFFFF;
  border-radius: var(--radius-sm);
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s ease;
}

.page-btn.active, .page-btn:hover {
  background: var(--brand-orange);
  border-color: var(--brand-orange);
  box-shadow: 0 0 12px rgba(250, 93, 0, 0.5);
}

/* ==========================================================================
   Content Article & Spoke Layout (Mobile First)
   ========================================================================== */
.article-layout {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 2.5rem;
  padding: 3rem 0;
}

.article-content {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  box-shadow: var(--shadow-card);
}

.article-featured-media {
  margin-bottom: 2rem;
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid rgba(255, 168, 0, 0.2);
}

.article-featured-media img {
  width: 100%;
  height: auto;
  display: block;
}

.article-contextual-media {
  margin: 2rem 0;
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid rgba(255, 168, 0, 0.2);
}

.article-contextual-media img {
  width: 100%;
  height: auto;
  display: block;
}

/* Data Tables */
.table-responsive {
  width: 100%;
  overflow-x: auto;
  margin: 1.5rem 0;
}

table {
  width: 100%;
  border-collapse: collapse;
  background: rgba(17, 12, 30, 0.85);
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--border-subtle);
}

th, td {
  padding: 0.9rem 1.1rem;
  text-align: left;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 0.92rem;
}

th {
  background: rgba(250, 93, 0, 0.15);
  color: var(--brand-yellow);
  font-weight: 700;
  text-transform: uppercase;
  font-size: 0.82rem;
  letter-spacing: 0.5px;
}

tr:hover td {
  background: rgba(255, 255, 255, 0.03);
}

/* FAQ Accordion Component */
.faq-accordion {
  margin-top: 2rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.faq-item {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: all 0.2s ease;
}

.faq-question {
  width: 100%;
  padding: 1.15rem 1.4rem;
  background: transparent;
  border: none;
  color: #FFFFFF;
  font-size: 1.02rem;
  font-weight: 700;
  text-align: left;
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
}

.faq-answer {
  padding: 0 1.4rem 1.25rem 1.4rem;
  color: var(--text-muted);
  font-size: 0.92rem;
  line-height: 1.6;
}

/* Sidebar Quick Links */
.sidebar-sticky {
  position: sticky;
  top: 96px;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.widget-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 1.5rem;
}

.widget-title {
  font-size: 1.1rem;
  color: #FFFFFF;
  margin-bottom: 1rem;
  border-bottom: 2px solid var(--brand-orange);
  padding-bottom: 0.5rem;
}

.widget-list {
  list-style: none;
}

.widget-list li {
  margin-bottom: 0.75rem;
}

.widget-list a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: #C8C2D8;
  font-size: 0.9rem;
}

.widget-list a:hover {
  color: var(--brand-gold);
  transform: translateX(4px);
}

/* ==========================================================================
   Footer Component with 21+ & Official Entity References
   ========================================================================== */
.site-footer {
  background: #06040A;
  border-top: 1px solid var(--border-subtle);
  padding: 4rem 0 2rem 0;
  margin-top: 4rem;
}

.footer-top-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.5fr;
  gap: 2.5rem;
  margin-bottom: 3rem;
}

.footer-brand p {
  font-size: 0.88rem;
  color: var(--text-dim);
  margin-top: 1rem;
  max-width: 320px;
}

.footer-heading {
  font-size: 1rem;
  color: #FFFFFF;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 1.25rem;
}

.footer-links {
  list-style: none;
}

.footer-links li {
  margin-bottom: 0.6rem;
}

.footer-links a {
  color: var(--text-muted);
  font-size: 0.88rem;
}

.footer-links a:hover {
  color: var(--brand-gold);
}

.compliance-badge-row {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  align-items: center;
  padding: 1.5rem 0;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  margin-bottom: 2rem;
}

.badge-21 {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border: 2px solid #E53935;
  color: #E53935;
  border-radius: 50%;
  font-weight: 900;
  font-size: 1.1rem;
}

.compliance-text {
  font-size: 0.82rem;
  color: var(--text-dim);
  flex-grow: 1;
  max-width: 780px;
  line-height: 1.5;
}

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.82rem;
  color: var(--text-dim);
  flex-wrap: wrap;
  gap: 1rem;
}

/* ==========================================================================
   Mobile Bottom Sticky Navigation (App Style)
   ========================================================================== */
.mobile-bottom-dock {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  height: 64px;
  background: rgba(11, 8, 19, 0.96);
  backdrop-filter: blur(12px);
  border-top: 1px solid var(--border-subtle);
  z-index: 9999;
  justify-content: space-around;
  align-items: center;
  padding: 0 0.5rem;
}

.dock-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  font-size: 0.72rem;
  font-weight: 600;
  gap: 0.25rem;
  flex: 1;
}

.dock-item.active, .dock-item:hover {
  color: var(--brand-gold);
}

.dock-icon {
  font-size: 1.25rem;
}

/* ==========================================================================
   Responsive Breakpoints
   ========================================================================== */
@media (max-width: 1024px) {
  .grid-3x2 {
    grid-template-columns: repeat(2, 1fr);
  }
  .article-layout {
    grid-template-columns: 1fr;
  }
  .sidebar-sticky {
    position: static;
  }
  .footer-top-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 768px) {
  .header-nav {
    display: none;
  }
  .mobile-toggle {
    display: block;
  }
  .grid-3x2 {
    grid-template-columns: 1fr;
  }
  .footer-top-grid {
    grid-template-columns: 1fr;
  }
  .mobile-bottom-dock {
    display: flex;
  }
  body {
    padding-bottom: 70px;
  }
  .hero-casino-container {
    min-height: auto;
    padding: 3rem 0;
  }
  .article-content {
    padding: 1.5rem;
  }
}

/* ==========================================================================
   Author Profile & E-E-A-T Card System
   ========================================================================== */
.author-meta-bar {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem 0;
  margin-bottom: 2rem;
  border-bottom: 1px solid rgba(255, 168, 0, 0.15);
}

.author-avatar-img {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--brand-gold);
  box-shadow: 0 0 10px rgba(250, 93, 0, 0.4);
}

.author-meta-info {
  display: flex;
  flex-direction: column;
}

.author-meta-name {
  font-weight: 700;
  font-size: 0.95rem;
  color: #FFFFFF;
}

.author-meta-details {
  font-size: 0.8rem;
  color: var(--text-dim);
}

.author-box-footer {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  background: rgba(21, 15, 36, 0.85);
  border: 1px solid var(--border-glow);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  margin-top: 3rem;
  box-shadow: var(--shadow-card);
}

.author-box-avatar {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--brand-gold);
  flex-shrink: 0;
}

.author-box-body h4 {
  font-size: 1.15rem;
  color: #FFFFFF;
  margin-bottom: 0.25rem;
}

.author-box-title {
  font-size: 0.82rem;
  color: var(--brand-gold);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 0.6rem;
}

.author-box-bio {
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.5;
  margin-bottom: 0;
}

@media (max-width: 600px) {
  .author-box-footer {
    flex-direction: column;
    text-align: center;
  }
}
