/* ==========================================================================
   JILIACE DESIGN SYSTEM & CASINO LUXURY THEME
   Tailored to JiliAce Official Branding: Royal Purple, Neon Violet & Pure Gold
   Mobile-First Architecture, Accessible High-Contrast Hierarchy & Micro-Animations
   ========================================================================== */

:root {
  /* Brand Palette (Royal Purple & Neon Violet with Luminous Gold) */
  --color-primary: #8a2be2;
  --color-primary-light: #9d4edd;
  --color-primary-dark: #3c096c;
  --color-accent-gold: #ffd700;
  --color-accent-gold-hover: #ffea70;
  --color-accent-cyan: #00f0ff;
  --color-accent-magenta: #ff007f;
  
  /* Deep Atmospheric Casino Canvas */
  --bg-canvas: #0b0216;
  --bg-surface: #14052b;
  --bg-surface-elevated: #210b42;
  --bg-surface-card: rgba(33, 11, 66, 0.75);
  --bg-glass: rgba(26, 7, 54, 0.65);
  
  /* Border & Glow Effects */
  --border-subtle: rgba(157, 78, 221, 0.25);
  --border-gold: rgba(255, 215, 0, 0.4);
  --border-glow: 0 0 15px rgba(138, 43, 226, 0.4);
  --gold-glow: 0 0 20px rgba(255, 215, 0, 0.35);

  /* Typography Scale */
  --text-main: #f8f9fa;
  --text-muted: #b8b2cb;
  --text-dim: #7d7594;
  --text-gold: #ffd700;
  
  /* Spacing Scale */
  --space-xs: 4px;
  --space-sm: 8px;
  --space-md: 16px;
  --space-lg: 24px;
  --space-xl: 32px;
  --space-2xl: 48px;
  --space-3xl: 64px;
  
  /* Radii */
  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 18px;
  --radius-full: 9999px;
  
  /* Transitions */
  --transition-fast: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-smooth: 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

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

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
  background-color: var(--bg-canvas);
  color: var(--text-main);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

a {
  color: var(--color-accent-gold);
  text-decoration: none;
  transition: color var(--transition-fast);
}

a:hover, a:focus {
  color: var(--color-accent-gold-hover);
  text-decoration: underline;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* ==========================================================================
   HEADER & INTERACTIVE NAVIGATION
   Sticky, Dropdown-supported, Max 6 Category Tabs
   ========================================================================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(11, 2, 22, 0.88);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-subtle);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
}

.header-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 10px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand-logo-wrap {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}

.brand-logo-img {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--color-accent-gold);
  box-shadow: var(--gold-glow);
}

.brand-name {
  font-size: 1.35rem;
  font-weight: 800;
  letter-spacing: 1px;
  background: linear-gradient(135deg, #fff, var(--color-accent-gold));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  text-transform: uppercase;
}

/* Category Navigation (Max 6 Tabs + Dropdowns) */
.nav-menu {
  display: flex;
  list-style: none;
  gap: 8px;
  align-items: center;
}

.nav-item {
  position: relative;
}

.nav-link {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-main);
  border-radius: var(--radius-full);
  transition: all var(--transition-fast);
  cursor: pointer;
  border: 1px solid transparent;
}

.nav-link:hover, .nav-item:hover > .nav-link, .nav-link.active {
  color: var(--color-accent-gold);
  background: var(--bg-surface-elevated);
  border-color: var(--border-gold);
  text-decoration: none;
  box-shadow: 0 0 10px rgba(255, 215, 0, 0.2);
}

/* Dropdown Menu */
.dropdown-menu {
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 220px;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 8px;
  list-style: none;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: all var(--transition-fast);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.7), var(--border-glow);
}

.nav-item:hover .dropdown-menu,
.nav-item:focus-within .dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.dropdown-item a {
  display: block;
  padding: 8px 12px;
  font-size: 0.9rem;
  color: var(--text-muted);
  border-radius: var(--radius-sm);
  transition: all var(--transition-fast);
}

.dropdown-item a:hover {
  color: #fff;
  background: var(--bg-surface-elevated);
  text-decoration: none;
  padding-left: 16px;
}

/* Mobile Hamburger Toggle */
.mobile-nav-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--text-main);
  font-size: 1.5rem;
  cursor: pointer;
  padding: 8px;
}

/* Header CTAs */
.header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.btn-pill {
  padding: 8px 18px;
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  border-radius: var(--radius-full);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition-fast);
  cursor: pointer;
  border: none;
}

.btn-login {
  background: transparent;
  color: var(--text-main);
  border: 1px solid var(--border-subtle);
}

.btn-login:hover {
  border-color: var(--color-accent-gold);
  color: var(--color-accent-gold);
  text-decoration: none;
}

.btn-register {
  background: linear-gradient(135deg, #ffd700, #ff9900);
  color: #0b0216;
  box-shadow: 0 2px 12px rgba(255, 215, 0, 0.4);
}

.btn-register:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 18px rgba(255, 215, 0, 0.6);
  color: #000;
  text-decoration: none;
}

/* ==========================================================================
   FIRST CONTAINER / HERO SECTION (CASINO VIBE BACKGROUND)
   ========================================================================== */
.hero-container {
  position: relative;
  min-height: 440px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-3xl) var(--space-md);
  background-image: linear-gradient(180deg, rgba(11, 2, 22, 0.55) 0%, rgba(11, 2, 22, 0.95) 100%), url('../images/casino_hero_bg.webp');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  border-bottom: 1px solid var(--border-subtle);
}

/* Subtle Shimmer Flash Layer */
.hero-container::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 50% 30%, rgba(138, 43, 226, 0.25), transparent 70%);
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 860px;
  margin: 0 auto;
  text-align: center;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--color-accent-gold);
  background: rgba(33, 11, 66, 0.85);
  border: 1px solid var(--border-gold);
  border-radius: var(--radius-full);
  margin-bottom: var(--space-md);
  box-shadow: var(--gold-glow);
}

.hero-title {
  font-size: clamp(2rem, 5vw, 3.25rem);
  font-weight: 900;
  line-height: 1.15;
  margin-bottom: var(--space-md);
  background: linear-gradient(135deg, #ffffff 40%, var(--color-accent-gold) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  text-shadow: 0 4px 20px rgba(0, 0, 0, 0.8);
}

.hero-description {
  font-size: 1.1rem;
  color: var(--text-muted);
  max-width: 700px;
  margin: 0 auto var(--space-xl);
  line-height: 1.7;
}

.hero-cta-group {
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
}

/* ==========================================================================
   AUTHOR & TRUST BLOCK (E-E-A-T PRINCIPLES)
   ========================================================================== */
.eeat-author-card {
  max-width: 1100px;
  margin: -30px auto var(--space-2xl);
  position: relative;
  z-index: 10;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-left: 4px solid var(--color-accent-gold);
  border-radius: var(--radius-md);
  padding: var(--space-md) var(--space-lg);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.6);
}

.author-meta {
  display: flex;
  align-items: center;
  gap: 14px;
}

.author-avatar {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  border: 2px solid var(--color-accent-gold);
}

.author-details h4 {
  font-size: 0.95rem;
  color: #fff;
  margin-bottom: 2px;
}

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

.trust-badges-group {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.badge-pill {
  font-size: 0.75rem;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: var(--radius-full);
  background: var(--bg-surface-elevated);
  border: 1px solid var(--border-subtle);
  color: var(--text-muted);
}

/* ==========================================================================
   CONTENT LAYOUT: POSTCARDS & 3x2 INTERACTIVE GRIDS
   ========================================================================== */
.section-wrapper {
  max-width: 1200px;
  margin: 0 auto;
  padding: var(--space-2xl) var(--space-md);
}

.section-header {
  text-align: center;
  margin-bottom: var(--space-xl);
}

.section-tag {
  font-size: 0.8rem;
  text-transform: uppercase;
  color: var(--color-accent-gold);
  font-weight: 700;
  letter-spacing: 1px;
}

.section-heading {
  font-size: 2rem;
  font-weight: 800;
  color: #fff;
  margin-top: 4px;
}

.section-subtext {
  font-size: 1rem;
  color: var(--text-muted);
  max-width: 600px;
  margin: 8px auto 0;
}

/* 3x2 Grid Box (6 Postcards per page) */
.grid-3x2 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.postcard {
  background: var(--bg-surface-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: transform var(--transition-fast), border-color var(--transition-fast), box-shadow var(--transition-fast);
  display: flex;
  flex-direction: column;
}

.postcard:hover {
  transform: translateY(-6px);
  border-color: var(--border-gold);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.7), var(--border-glow);
}

.postcard-img-wrap {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
}

.postcard-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-smooth);
}

.postcard:hover .postcard-img {
  transform: scale(1.06);
}

.postcard-tag {
  position: absolute;
  top: 10px;
  left: 10px;
  background: rgba(11, 2, 22, 0.85);
  border: 1px solid var(--border-gold);
  color: var(--color-accent-gold);
  font-size: 0.7rem;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: var(--radius-sm);
  text-transform: uppercase;
}

.postcard-body {
  padding: var(--space-md);
  display: flex;
  flex-direction: column;
  flex: 1;
}

.postcard-title {
  font-size: 1.15rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 8px;
  line-height: 1.35;
}

.postcard-desc {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.5;
  margin-bottom: var(--space-md);
  flex: 1;
}

.postcard-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding-top: 12px;
}

.read-more-link {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--color-accent-gold);
  display: flex;
  align-items: center;
  gap: 4px;
}

/* ==========================================================================
   PAGINATION & INTERACTIVE TAB CONTROLS
   ========================================================================== */
.pagination-wrap {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  margin-top: var(--space-2xl);
}

.page-btn {
  width: 38px;
  height: 38px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-sm);
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  color: var(--text-muted);
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.page-btn.active, .page-btn:hover {
  background: var(--bg-surface-elevated);
  border-color: var(--color-accent-gold);
  color: var(--color-accent-gold);
  box-shadow: 0 0 10px rgba(255, 215, 0, 0.3);
}

/* ==========================================================================
   PAA FAQ ACCORDION COMPONENT
   ========================================================================== */
.faq-section {
  max-width: 900px;
  margin: 0 auto;
  padding: var(--space-xl) var(--space-md);
}

.faq-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  margin-bottom: 12px;
  overflow: hidden;
  transition: border-color var(--transition-fast);
}

.faq-card:hover {
  border-color: var(--color-primary-light);
}

.faq-question {
  width: 100%;
  text-align: left;
  padding: 16px 20px;
  font-size: 1rem;
  font-weight: 700;
  color: #fff;
  background: none;
  border: none;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.faq-icon {
  font-size: 1.25rem;
  color: var(--color-accent-gold);
  transition: transform var(--transition-fast);
}

.faq-answer {
  padding: 0 20px 16px;
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.6;
}

/* ==========================================================================
   FOOTER COMPONENT (STRICT 21+ RESPONSIBLE GAMBLING MANDATE)
   ========================================================================== */
.site-footer {
  background: #080112;
  border-top: 1px solid var(--border-subtle);
  padding: var(--space-3xl) var(--space-md) var(--space-xl);
  margin-top: var(--space-3xl);
}

.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
}

.footer-top {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 32px;
  margin-bottom: var(--space-2xl);
}

.footer-brand-desc {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-top: 12px;
  line-height: 1.6;
}

.footer-col-title {
  font-size: 1rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 14px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

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

.footer-links a:hover {
  color: var(--color-accent-gold);
  text-decoration: none;
}

/* Responsible Gaming 21+ Notice Banner */
.responsible-gaming-banner {
  background: rgba(33, 11, 66, 0.7);
  border: 1px solid rgba(255, 215, 0, 0.3);
  border-radius: var(--radius-md);
  padding: 18px 24px;
  display: flex;
  align-items: center;
  gap: 20px;
  margin-bottom: var(--space-2xl);
}

.age-badge {
  background: #ff0055;
  color: #fff;
  font-weight: 900;
  font-size: 1.25rem;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  border: 2px solid #fff;
}

.rg-text {
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.5;
}

.footer-bottom {
  text-align: center;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding-top: var(--space-lg);
  font-size: 0.8rem;
  color: var(--text-dim);
}

/* ==========================================================================
   MOBILE-FIRST RESPONSIVE MEDIA QUERIES
   ========================================================================== */
@media (max-width: 992px) {
  .grid-3x2 {
    grid-template-columns: repeat(2, 1fr);
  }
  .footer-top {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 768px) {
  .nav-menu {
    display: none; /* In production: toggled via mobile menu drawer */
  }
  .mobile-nav-toggle {
    display: block;
  }
  .grid-3x2 {
    grid-template-columns: 1fr;
  }
  .footer-top {
    grid-template-columns: 1fr;
  }
  .hero-container {
    min-height: 380px;
    padding: var(--space-2xl) var(--space-md);
  }
  .eeat-author-card {
    flex-direction: column;
    align-items: flex-start;
  }
}
