/* ==========================================================================
   GPERYA GAMING PLATFORM - MASTER STYLESHEET
   Design System & UI Components for Philippine iGaming Hub
   Adheres to: /gambling-website-ui-ux-designer & Brand Color Palette
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. CSS RESET & CUSTOM PROPERTIES (DESIGN TOKENS)
   -------------------------------------------------------------------------- */
:root {
  /* Brand Primary Palette (Official GPERYA Crimson & Burgundy) */
  --brand-primary: #8b1111;
  --brand-primary-dark: #580a0a;
  --brand-primary-deep: #380505;
  --brand-primary-light: #ab1a1a;
  --brand-primary-glow: rgba(139, 17, 17, 0.45);

  /* Brand Secondary Palette (Casino Gold & Amber) */
  --brand-gold: #ffd700;
  --brand-gold-light: #ffe57f;
  --brand-gold-dark: #c69500;
  --brand-gold-glow: rgba(255, 215, 0, 0.35);
  --brand-gold-gradient: linear-gradient(135deg, #ffe57f 0%, #ffd700 50%, #c69500 100%);
  --brand-crimson-gradient: linear-gradient(135deg, #a51818 0%, #8b1111 60%, #4a0707 100%);
  --brand-vip-gradient: linear-gradient(135deg, #1f0b0f 0%, #3d0e17 50%, #1f0b0f 100%);

  /* Neutral Dark Canvas & Surface Hierarchy */
  --bg-canvas: #0c0406;
  --bg-surface: #14080b;
  --bg-surface-elevated: #1e0d12;
  --bg-surface-highlight: #2a1219;
  --bg-glass: rgba(20, 8, 11, 0.78);
  --bg-glass-card: rgba(30, 13, 18, 0.85);

  /* Border Tokens */
  --border-subtle: rgba(255, 215, 0, 0.12);
  --border-medium: rgba(255, 215, 0, 0.25);
  --border-accent: rgba(255, 215, 0, 0.55);
  --border-red: rgba(139, 17, 17, 0.35);

  /* Functional Accents */
  --accent-success: #00b894;
  --accent-gcash: #0070ba;
  --accent-maya: #00b488;
  --accent-warning: #f39c12;
  --accent-danger: #e74c3c;

  /* Typography Colors */
  --text-white: #ffffff;
  --text-primary: #f8fafc;
  --text-secondary: #cbd5e1;
  --text-muted: #94a3b8;
  --text-dim: #64748b;
  --text-gold: #ffd700;

  /* Font Families */
  --font-heading: 'Outfit', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-body: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-mono: 'JetBrains Mono', monospace;

  /* Spacing Scale */
  --space-2xs: 4px;
  --space-xs: 8px;
  --space-sm: 12px;
  --space-md: 16px;
  --space-lg: 24px;
  --space-xl: 32px;
  --space-2xl: 48px;
  --space-3xl: 64px;
  --space-4xl: 80px;

  /* Border Radius */
  --radius-xs: 4px;
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --radius-pill: 9999px;

  /* Elevation Shadows */
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.4);
  --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.5);
  --shadow-lg: 0 8px 30px rgba(0, 0, 0, 0.65);
  --shadow-gold: 0 0 24px rgba(255, 215, 0, 0.22);
  --shadow-crimson: 0 0 30px rgba(139, 17, 17, 0.45);

  /* Container Max Width */
  --container-max: 1240px;
  --container-narrow: 880px;

  /* Transitions */
  --transition-fast: 150ms cubic-bezier(0.4, 0, 0.2, 1);
  --transition-normal: 250ms cubic-bezier(0.4, 0, 0.2, 1);
  --transition-smooth: 350ms cubic-bezier(0.16, 1, 0.3, 1);
}

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-body);
  background-color: var(--bg-canvas);
  color: var(--text-primary);
  line-height: 1.65;
  overflow-x: hidden;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

img, picture, svg, video {
  display: block;
  max-width: 100%;
  height: auto;
}

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

a:hover {
  color: var(--brand-gold-light);
}

button, input, select, textarea {
  font-family: inherit;
  font-size: inherit;
}

/* --------------------------------------------------------------------------
   2. FLASHY CASINO ATMOSPHERE & BACKGROUNDS
   -------------------------------------------------------------------------- */
/* Subtle animated background particle texture */
.casino-bg-pattern {
  background-image: 
    radial-gradient(circle at 15% 50%, rgba(139, 17, 17, 0.18) 0%, transparent 40%),
    radial-gradient(circle at 85% 30%, rgba(255, 215, 0, 0.08) 0%, transparent 35%),
    linear-gradient(to bottom, var(--bg-canvas), #110508 50%, var(--bg-canvas));
  background-attachment: fixed;
}

/* Container Casino Glow & Shimmer */
.casino-container-flashy {
  position: relative;
  overflow: hidden;
  background: linear-gradient(180deg, rgba(26, 8, 12, 0.92) 0%, rgba(16, 5, 8, 0.98) 100%);
  border-top: 1px solid var(--border-medium);
  border-bottom: 1px solid var(--border-subtle);
}

.casino-container-flashy::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent 0%, var(--brand-gold) 50%, transparent 100%);
  opacity: 0.8;
  animation: shine-sweep 6s ease-in-out infinite;
}

@keyframes shine-sweep {
  0% { transform: translateX(-100%); }
  50% { transform: translateX(100%); }
  100% { transform: translateX(-100%); }
}

/* Floating Gold Particle Accents */
.gold-glow-orb {
  position: absolute;
  width: 320px;
  height: 320px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 215, 0, 0.12) 0%, transparent 70%);
  pointer-events: none;
  filter: blur(40px);
  z-index: 0;
}

.crimson-glow-orb {
  position: absolute;
  width: 400px;
  height: 400px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(139, 17, 17, 0.28) 0%, transparent 70%);
  pointer-events: none;
  filter: blur(50px);
  z-index: 0;
}

/* --------------------------------------------------------------------------
   3. TYPOGRAPHY & HEADINGS (Strict: No numbers at start of headings)
   -------------------------------------------------------------------------- */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  color: var(--text-white);
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: -0.015em;
}

h1 {
  font-size: clamp(2rem, 4vw + 1rem, 3.25rem);
  font-weight: 800;
  margin-bottom: var(--space-md);
  text-shadow: 0 2px 14px rgba(0, 0, 0, 0.7);
}

h2 {
  font-size: clamp(1.5rem, 2.5vw + 0.5rem, 2.25rem);
  margin-bottom: var(--space-md);
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  color: var(--text-white);
}

h2::before {
  content: '';
  display: inline-block;
  width: 6px;
  height: 1.2em;
  background: var(--brand-gold-gradient);
  border-radius: var(--radius-xs);
  flex-shrink: 0;
}

h3 {
  font-size: clamp(1.2rem, 1.8vw + 0.3rem, 1.5rem);
  margin-bottom: var(--space-sm);
  color: var(--brand-gold-light);
}

p {
  margin-bottom: var(--space-md);
  color: var(--text-secondary);
  font-size: 1.05rem;
}

/* --------------------------------------------------------------------------
   4. LAYOUT & CONTAINERS (Proportional & Mobile-Friendly)
   -------------------------------------------------------------------------- */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin-left: auto;
  margin-right: auto;
  padding-left: var(--space-md);
  padding-right: var(--space-md);
  position: relative;
  z-index: 1;
}

.container-narrow {
  max-width: var(--container-narrow);
}

.section {
  padding-top: var(--space-3xl);
  padding-bottom: var(--space-3xl);
  position: relative;
}

@media (max-width: 768px) {
  .section {
    padding-top: var(--space-2xl);
    padding-bottom: var(--space-2xl);
  }
}

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

.section-header h2 {
  justify-content: center;
}

.section-header p {
  max-width: 680px;
  margin-left: auto;
  margin-right: auto;
  color: var(--text-muted);
  font-size: 1.05rem;
}

.section-badge {
  display: inline-flex;
  align-items: center;
  gap: var(--space-xs);
  padding: 6px 14px;
  background: rgba(255, 215, 0, 0.1);
  border: 1px solid var(--border-medium);
  border-radius: var(--radius-pill);
  color: var(--brand-gold);
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: var(--space-sm);
}

/* --------------------------------------------------------------------------
   5. FIRST CONTAINER HERO SECTION (MANDATORY CASINO BG RULE)
   -------------------------------------------------------------------------- */
.casino-page-hero {
  position: relative;
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
  padding-top: calc(80px + var(--space-3xl));
  padding-bottom: var(--space-3xl);
  overflow: hidden;
  border-bottom: 2px solid var(--border-accent);
}

/* Rich Casino Overlay to ensure text readability & casino aura */
.casino-page-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: 
    linear-gradient(180deg, rgba(12, 4, 6, 0.82) 0%, rgba(20, 8, 11, 0.88) 55%, var(--bg-canvas) 100%),
    radial-gradient(ellipse at 50% 30%, rgba(139, 17, 17, 0.45) 0%, transparent 75%);
  z-index: 0;
}

.casino-hero-content {
  position: relative;
  z-index: 1;
}

.hero-trust-badges {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-sm);
  margin-bottom: var(--space-md);
}

.trust-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 12px;
  background: rgba(0, 0, 0, 0.6);
  border: 1px solid var(--border-medium);
  border-radius: var(--radius-pill);
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--brand-gold-light);
  backdrop-filter: blur(8px);
}

.trust-pill.verified {
  border-color: rgba(0, 184, 148, 0.4);
  color: var(--accent-success);
}

.trust-pill.age-21 {
  border-color: rgba(231, 76, 60, 0.5);
  color: #ff7675;
  background: rgba(139, 17, 17, 0.4);
}

.hero-cta-group {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-md);
  margin-top: var(--space-lg);
  align-items: center;
}

/* Hero Live Stats Bar */
.hero-stats-bar {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: var(--space-md);
  margin-top: var(--space-2xl);
  padding: var(--space-md) var(--space-lg);
  background: var(--bg-glass-card);
  border: 1px solid var(--border-medium);
  border-radius: var(--radius-lg);
  backdrop-filter: blur(12px);
  box-shadow: var(--shadow-md);
}

.stat-item {
  display: flex;
  flex-direction: column;
}

.stat-item .stat-value {
  font-family: var(--font-heading);
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--brand-gold);
  line-height: 1.1;
}

.stat-item .stat-label {
  font-size: 0.85rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

/* --------------------------------------------------------------------------
   6. HEADER & NAVIGATION TEMPLATE
   -------------------------------------------------------------------------- */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(12, 4, 6, 0.92);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border-medium);
  transition: all var(--transition-normal);
}

.site-header.scrolled {
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.8);
  border-bottom-color: var(--border-accent);
}

/* Top Announcement Ticker */
.header-ticker {
  background: var(--brand-primary-deep);
  border-bottom: 1px solid rgba(255, 215, 0, 0.15);
  font-size: 0.82rem;
  padding: 4px 0;
  color: var(--brand-gold-light);
}

.header-ticker .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.ticker-item {
  display: flex;
  align-items: center;
  gap: 8px;
}

.ticker-dot {
  width: 8px;
  height: 8px;
  background-color: var(--accent-success);
  border-radius: 50%;
  box-shadow: 0 0 8px var(--accent-success);
  animation: pulse-green 2s infinite;
}

@keyframes pulse-green {
  0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(0, 184, 148, 0.7); }
  70% { transform: scale(1); box-shadow: 0 0 0 6px rgba(0, 184, 148, 0); }
  100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(0, 184, 148, 0); }
}

/* Main Nav Bar */
.header-main {
  height: 72px;
}

.header-main .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}

.brand-logo-link {
  display: flex;
  align-items: center;
  gap: var(--space-xs);
  text-decoration: none;
}

.brand-logo-img {
  height: 48px;
  width: auto;
  object-fit: contain;
  filter: drop-shadow(0 2px 8px rgba(255, 215, 0, 0.25));
  transition: transform var(--transition-fast);
}

.brand-logo-link:hover .brand-logo-img {
  transform: scale(1.03);
}

/* Desktop Nav Menu */
.nav-menu {
  display: flex;
  align-items: center;
  gap: var(--space-lg);
  list-style: none;
}

.nav-link {
  color: var(--text-secondary);
  font-weight: 600;
  font-size: 0.95rem;
  padding: 8px 12px;
  border-radius: var(--radius-sm);
  transition: all var(--transition-fast);
  display: flex;
  align-items: center;
  gap: 4px;
}

.nav-link:hover, .nav-link.active {
  color: var(--brand-gold);
  background: rgba(255, 215, 0, 0.08);
}

.nav-link .badge-nav {
  font-size: 0.7rem;
  background: var(--brand-primary);
  color: #fff;
  padding: 2px 6px;
  border-radius: var(--radius-pill);
  font-weight: 700;
}

/* Header CTAs */
.header-actions {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
}

/* Language Switcher Component */
.lang-switcher {
  display: inline-flex;
  align-items: center;
  background: rgba(0, 0, 0, 0.55);
  border: 1px solid var(--border-medium);
  border-radius: var(--radius-pill);
  padding: 3px 6px;
  gap: 2px;
}

.lang-btn {
  background: transparent;
  border: none;
  color: var(--text-muted);
  font-size: 0.78rem;
  font-weight: 700;
  padding: 4px 8px;
  border-radius: var(--radius-pill);
  cursor: pointer;
  transition: all var(--transition-fast);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.lang-btn:hover {
  color: var(--brand-gold-light);
}

.lang-btn.active {
  background: var(--brand-crimson-gradient);
  color: #ffffff;
  box-shadow: 0 1px 6px rgba(139, 17, 17, 0.4);
}

.lang-divider {
  color: var(--text-dim);
  font-size: 0.75rem;
}

.mobile-toggle {
  display: none;
  background: none;
  border: 1px solid var(--border-medium);
  border-radius: var(--radius-sm);
  color: var(--text-white);
  padding: 8px 12px;
  cursor: pointer;
  font-size: 1.25rem;
}

/* Mobile Nav Drawer */
.mobile-nav-drawer {
  position: fixed;
  top: 72px;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(12, 4, 6, 0.98);
  backdrop-filter: blur(20px);
  z-index: 999;
  padding: var(--space-xl) var(--space-md);
  display: none;
  flex-direction: column;
  gap: var(--space-md);
  border-top: 1px solid var(--border-medium);
  overflow-y: auto;
}

.mobile-nav-drawer.open {
  display: flex;
}

.mobile-nav-link {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--text-primary);
  padding: var(--space-sm) var(--space-md);
  border-radius: var(--radius-md);
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.mobile-nav-link:hover {
  background: var(--bg-surface-elevated);
  color: var(--brand-gold);
  border-color: var(--border-accent);
}

@media (max-width: 1024px) {
  .nav-menu {
    display: none;
  }
  .mobile-toggle {
    display: block;
  }
}

/* --------------------------------------------------------------------------
   7. BUTTONS & INTERACTIVE CONTROLS
   -------------------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-xs);
  font-weight: 700;
  font-size: 0.95rem;
  padding: 12px 24px;
  border-radius: var(--radius-pill);
  cursor: pointer;
  border: none;
  transition: all var(--transition-fast);
  text-decoration: none;
  text-align: center;
  white-space: nowrap;
}

.btn-primary {
  background: var(--brand-gold-gradient);
  color: #1a0505;
  box-shadow: 0 4px 14px rgba(255, 215, 0, 0.35);
  font-weight: 800;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(255, 215, 0, 0.55);
  color: #000;
}

.btn-crimson {
  background: var(--brand-crimson-gradient);
  color: #ffffff;
  border: 1px solid var(--border-medium);
  box-shadow: 0 4px 14px rgba(139, 17, 17, 0.4);
}

.btn-crimson:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(139, 17, 17, 0.6);
  color: #ffffff;
}

.btn-outline {
  background: rgba(255, 215, 0, 0.05);
  color: var(--brand-gold);
  border: 1px solid var(--border-medium);
}

.btn-outline:hover {
  background: rgba(255, 215, 0, 0.15);
  border-color: var(--brand-gold);
  color: var(--brand-gold-light);
}

.btn-sm {
  padding: 8px 16px;
  font-size: 0.85rem;
}

.btn-lg {
  padding: 16px 32px;
  font-size: 1.1rem;
}

/* --------------------------------------------------------------------------
   8. 3x2 INTERACTIVE GRID BOX WITH PAGINATION (MANDATORY REQUIREMENT)
   Strictly 3 columns x 2 rows = 6 items per page
   -------------------------------------------------------------------------- */
.casino-grid-wrapper {
  position: relative;
  margin-top: var(--space-xl);
}

.casino-3x2-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-lg);
  margin-bottom: var(--space-xl);
}

@media (max-width: 992px) {
  .casino-3x2-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 580px) {
  .casino-3x2-grid {
    grid-template-columns: 1fr;
  }
}

/* Casino Game Placecard Component */
.game-placecard {
  background: var(--bg-surface);
  border: 1px solid var(--border-medium);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: all var(--transition-smooth);
  display: flex;
  flex-direction: column;
  position: relative;
  box-shadow: var(--shadow-sm);
}

.game-placecard:hover {
  transform: translateY(-6px);
  border-color: var(--brand-gold);
  box-shadow: var(--shadow-gold);
}

.placecard-media {
  position: relative;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background-color: #1a0505;
}

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

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

.placecard-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  padding: 4px 10px;
  background: rgba(139, 17, 17, 0.9);
  color: #ffffff;
  border: 1px solid var(--border-medium);
  border-radius: var(--radius-pill);
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  backdrop-filter: blur(6px);
}

.placecard-badge.gold {
  background: var(--brand-gold-gradient);
  color: #1a0505;
  border-color: #ffd700;
}

.placecard-badge.live {
  background: #e74c3c;
  display: flex;
  align-items: center;
  gap: 5px;
}

.placecard-rtp {
  position: absolute;
  bottom: 12px;
  right: 12px;
  padding: 3px 8px;
  background: rgba(0, 0, 0, 0.8);
  color: var(--brand-gold-light);
  border-radius: var(--radius-xs);
  font-size: 0.75rem;
  font-weight: 600;
  border: 1px solid rgba(255, 215, 0, 0.3);
}

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

.placecard-category {
  font-size: 0.8rem;
  color: var(--brand-gold);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 4px;
}

.placecard-title {
  font-size: 1.2rem;
  color: var(--text-white);
  margin-bottom: 8px;
  font-weight: 700;
}

.placecard-desc {
  font-size: 0.92rem;
  color: var(--text-muted);
  margin-bottom: var(--space-md);
  line-height: 1.45;
  flex-grow: 1;
}

.placecard-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: var(--space-sm);
  border-top: 1px solid var(--border-subtle);
  margin-bottom: var(--space-md);
  font-size: 0.82rem;
  color: var(--text-dim);
}

.placecard-meta span strong {
  color: var(--text-secondary);
}

.placecard-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-xs);
}

/* Pagination Controls (Client-Side Interactive 3x2) */
.pagination-container {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-xs);
  margin-top: var(--space-xl);
}

.pagination-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 42px;
  height: 42px;
  padding: 0 14px;
  background: var(--bg-surface);
  border: 1px solid var(--border-medium);
  border-radius: var(--radius-sm);
  color: var(--text-secondary);
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.pagination-btn:hover:not(:disabled) {
  background: var(--bg-surface-elevated);
  border-color: var(--brand-gold);
  color: var(--brand-gold);
}

.pagination-btn.active {
  background: var(--brand-gold-gradient);
  border-color: var(--brand-gold);
  color: #1a0505;
  font-weight: 800;
}

.pagination-btn:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

.pagination-info {
  font-size: 0.88rem;
  color: var(--text-muted);
  margin: 0 var(--space-sm);
}

/* --------------------------------------------------------------------------
   9. FEATURED & CONTEXTUAL MEDIA ELEMENTS (RULE: NO CAPTIONS ON FEATURED)
   -------------------------------------------------------------------------- */
.featured-image-wrapper {
  margin-top: var(--space-lg);
  margin-bottom: var(--space-xl);
  border-radius: var(--radius-xl);
  overflow: hidden;
  border: 1px solid var(--border-accent);
  box-shadow: var(--shadow-lg);
  position: relative;
  background-color: #140508;
}

.featured-image-wrapper img {
  width: 100%;
  max-height: 480px;
  object-fit: cover;
  transition: transform var(--transition-smooth);
}

.contextual-image-wrapper {
  margin-top: var(--space-xl);
  margin-bottom: var(--space-xl);
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border-medium);
  background: var(--bg-surface);
  box-shadow: var(--shadow-md);
}

.contextual-image-wrapper img {
  width: 100%;
  max-height: 400px;
  object-fit: cover;
}

.contextual-caption {
  padding: var(--space-sm) var(--space-md);
  font-size: 0.88rem;
  color: var(--text-muted);
  border-top: 1px solid var(--border-subtle);
  background: var(--bg-surface-elevated);
  display: flex;
  align-items: center;
  gap: 8px;
}

/* --------------------------------------------------------------------------
   10. E-E-A-T AUTHOR & EDITORIAL REVIEW BLOCK
   -------------------------------------------------------------------------- */
.eeat-author-card {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  padding: var(--space-md) var(--space-lg);
  background: var(--bg-glass-card);
  border: 1px solid var(--border-medium);
  border-left: 4px solid var(--brand-gold);
  border-radius: var(--radius-md);
  margin-bottom: var(--space-xl);
  backdrop-filter: blur(10px);
}

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

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

.author-name-row {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.author-name {
  font-weight: 700;
  color: var(--text-white);
  font-size: 1.05rem;
}

.author-role {
  font-size: 0.82rem;
  color: var(--brand-gold);
  background: rgba(255, 215, 0, 0.1);
  padding: 2px 8px;
  border-radius: var(--radius-pill);
}

.author-meta {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-top: 2px;
}

/* --------------------------------------------------------------------------
   11. DATA & COMPARISON TABLES (RESPONSIVE)
   -------------------------------------------------------------------------- */
.table-responsive {
  width: 100%;
  overflow-x: auto;
  margin-top: var(--space-md);
  margin-bottom: var(--space-xl);
  border-radius: var(--radius-md);
  border: 1px solid var(--border-medium);
  box-shadow: var(--shadow-sm);
  background: var(--bg-surface);
}

table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-size: 0.95rem;
}

thead th {
  background: var(--bg-surface-highlight);
  color: var(--brand-gold);
  font-family: var(--font-heading);
  font-weight: 700;
  padding: 14px 18px;
  border-bottom: 2px solid var(--border-medium);
  white-space: nowrap;
}

tbody td {
  padding: 14px 18px;
  border-bottom: 1px solid var(--border-subtle);
  color: var(--text-secondary);
}

tbody tr:last-child td {
  border-bottom: none;
}

tbody tr:hover {
  background: rgba(255, 215, 0, 0.03);
}

/* --------------------------------------------------------------------------
   12. PAA FAQ ACCORDION (INTERACTIVE JS ACCORDION)
   -------------------------------------------------------------------------- */
.faq-accordion {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
  margin-top: var(--space-lg);
}

.faq-item {
  background: var(--bg-surface);
  border: 1px solid var(--border-medium);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: all var(--transition-fast);
}

.faq-item:hover {
  border-color: var(--border-accent);
}

.faq-question {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 24px;
  background: none;
  border: none;
  color: var(--text-white);
  font-family: var(--font-heading);
  font-size: 1.1rem;
  font-weight: 700;
  text-align: left;
  cursor: pointer;
  gap: var(--space-md);
}

.faq-icon {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  transition: transform var(--transition-normal);
  color: var(--brand-gold);
}

.faq-item.active .faq-icon {
  transform: rotate(180deg);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height var(--transition-smooth);
  background: var(--bg-surface-elevated);
}

.faq-item.active .faq-answer {
  max-height: 500px;
}

.faq-answer-inner {
  padding: 18px 24px;
  color: var(--text-secondary);
  border-top: 1px solid var(--border-subtle);
  font-size: 1rem;
}

/* --------------------------------------------------------------------------
   13. PLAYER PERSONA REVIEWS BUNDLE (COMMUNITY SOCIAL PROOF)
   -------------------------------------------------------------------------- */
.persona-reviews-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: var(--space-lg);
  margin-top: var(--space-lg);
}

.persona-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-medium);
  border-radius: var(--radius-lg);
  padding: var(--space-lg);
  display: flex;
  flex-direction: column;
  position: relative;
  transition: transform var(--transition-fast);
}

.persona-card:hover {
  transform: translateY(-4px);
  border-color: var(--brand-gold);
}

.persona-stars {
  color: var(--brand-gold);
  font-size: 1.1rem;
  margin-bottom: var(--space-xs);
}

.persona-quote {
  font-style: italic;
  color: var(--text-secondary);
  margin-bottom: var(--space-md);
  flex-grow: 1;
  font-size: 0.95rem;
}

.persona-author {
  display: flex;
  align-items: center;
  gap: var(--space-xs);
  border-top: 1px solid var(--border-subtle);
  padding-top: var(--space-sm);
}

.persona-badge-verified {
  font-size: 0.75rem;
  color: var(--accent-success);
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 4px;
}

/* --------------------------------------------------------------------------
   14. FUNCTIONAL TABBED AUTH CARD (LOGIN / RECOVERY / REGISTER)
   -------------------------------------------------------------------------- */
.auth-container-card {
  max-width: 520px;
  margin-left: auto;
  margin-right: auto;
  background: var(--bg-surface-elevated);
  border: 1px solid var(--border-accent);
  border-radius: var(--radius-xl);
  padding: var(--space-xl);
  box-shadow: var(--shadow-lg), var(--shadow-crimson);
  position: relative;
}

.auth-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4px;
  background: var(--bg-surface);
  padding: 4px;
  border-radius: var(--radius-pill);
  margin-bottom: var(--space-xl);
  border: 1px solid var(--border-medium);
}

.auth-tab-btn {
  padding: 10px 16px;
  border: none;
  background: transparent;
  color: var(--text-muted);
  font-weight: 700;
  border-radius: var(--radius-pill);
  cursor: pointer;
  transition: all var(--transition-fast);
}

.auth-tab-btn.active {
  background: var(--brand-crimson-gradient);
  color: #ffffff;
  box-shadow: 0 2px 8px rgba(139, 17, 17, 0.4);
}

.form-group {
  margin-bottom: var(--space-md);
}

.form-label {
  display: block;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text-white);
  margin-bottom: 6px;
}

.input-with-prefix {
  display: flex;
  border: 1px solid var(--border-medium);
  border-radius: var(--radius-md);
  overflow: hidden;
  background: #0d0407;
  transition: border-color var(--transition-fast);
}

.input-with-prefix:focus-within {
  border-color: var(--brand-gold);
  box-shadow: 0 0 10px rgba(255, 215, 0, 0.2);
}

.prefix-tag {
  background: var(--bg-surface-highlight);
  color: var(--brand-gold);
  font-weight: 700;
  padding: 12px 14px;
  font-size: 0.95rem;
  border-right: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
}

.form-input {
  width: 100%;
  padding: 12px 16px;
  background: transparent;
  border: none;
  color: var(--text-white);
  outline: none;
  font-size: 1rem;
}

.form-input::placeholder {
  color: var(--text-dim);
}

.form-actions {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: var(--space-sm);
  margin-bottom: var(--space-lg);
  font-size: 0.88rem;
}

/* --------------------------------------------------------------------------
   15. CONTENT & STRATEGY BOXES (ANSWER SUMMARIES & BREADCRUMBS)
   -------------------------------------------------------------------------- */
.summary-answer-box {
  background: linear-gradient(135deg, rgba(30, 13, 18, 0.9) 0%, rgba(20, 8, 11, 0.95) 100%);
  border: 1px solid var(--border-accent);
  border-left: 6px solid var(--brand-gold);
  border-radius: var(--radius-md);
  padding: var(--space-lg);
  margin-top: var(--space-lg);
  margin-bottom: var(--space-xl);
  box-shadow: var(--shadow-sm);
}

.summary-answer-box h3 {
  color: var(--brand-gold);
  margin-bottom: var(--space-xs);
  display: flex;
  align-items: center;
  gap: 8px;
}

.breadcrumbs {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.88rem;
  color: var(--text-muted);
  margin-bottom: var(--space-md);
}

.breadcrumbs a {
  color: var(--brand-gold);
}

.breadcrumbs span.separator {
  color: var(--text-dim);
}

/* --------------------------------------------------------------------------
   16. SILO CATEGORY CARDS & INTERNAL LINK GRID
   -------------------------------------------------------------------------- */
.silo-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: var(--space-md);
  margin-top: var(--space-lg);
}

.silo-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-medium);
  border-radius: var(--radius-md);
  padding: var(--space-md);
  display: flex;
  align-items: flex-start;
  gap: var(--space-md);
  transition: all var(--transition-fast);
  text-decoration: none;
}

.silo-card:hover {
  background: var(--bg-surface-elevated);
  border-color: var(--brand-gold);
  transform: translateX(4px);
}

.silo-icon {
  font-size: 2rem;
  line-height: 1;
}

.silo-text h4 {
  color: var(--text-white);
  font-size: 1.05rem;
  margin-bottom: 4px;
}

.silo-text p {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 0;
}

/* --------------------------------------------------------------------------
   17. FOOTER & COMPLIANCE (STRICT: ZERO PAGCOR NUMBERS, 21+ COMPLIANCE)
   -------------------------------------------------------------------------- */
.site-footer {
  background: #090304;
  border-top: 2px solid var(--border-accent);
  padding-top: var(--space-3xl);
  padding-bottom: calc(var(--space-3xl) + 60px); /* Padding for sticky mobile nav */
  color: var(--text-secondary);
  font-size: 0.92rem;
  position: relative;
}

/* 21+ Responsible Gaming Warning Banner */
.responsible-banner {
  background: linear-gradient(90deg, #3d0e14 0%, #610d18 50%, #3d0e14 100%);
  border: 1px solid rgba(231, 76, 60, 0.4);
  border-radius: var(--radius-lg);
  padding: var(--space-md) var(--space-lg);
  display: flex;
  align-items: center;
  gap: var(--space-md);
  margin-bottom: var(--space-2xl);
}

.responsible-badge-21 {
  font-family: var(--font-heading);
  font-size: 1.6rem;
  font-weight: 900;
  color: #ff7675;
  border: 3px solid #ff7675;
  border-radius: 50%;
  width: 54px;
  height: 54px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.responsible-banner-text h4 {
  color: #ff7675;
  font-size: 1.05rem;
  margin-bottom: 2px;
}

.responsible-banner-text p {
  margin-bottom: 0;
  font-size: 0.88rem;
  color: #f1f2f6;
}

/* Payment & Regulatory Trust Bar */
.trust-payment-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-md);
  padding-bottom: var(--space-xl);
  border-bottom: 1px solid var(--border-subtle);
  margin-bottom: var(--space-2xl);
}

.payment-methods-list {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  flex-wrap: wrap;
}

.payment-tag {
  padding: 6px 14px;
  background: var(--bg-surface);
  border: 1px solid var(--border-medium);
  border-radius: var(--radius-sm);
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--text-white);
}

/* Footer Link Columns */
.footer-columns {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: var(--space-2xl);
  margin-bottom: var(--space-2xl);
}

@media (max-width: 900px) {
  .footer-columns {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 600px) {
  .footer-columns {
    grid-template-columns: 1fr;
  }
}

.footer-col h4 {
  color: var(--brand-gold);
  font-size: 1.1rem;
  margin-bottom: var(--space-md);
  position: relative;
}

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

.footer-col ul a {
  color: var(--text-muted);
  font-size: 0.9rem;
  transition: color var(--transition-fast);
}

.footer-col ul a:hover {
  color: var(--brand-gold-light);
  padding-left: 4px;
}

.footer-bottom {
  border-top: 1px solid var(--border-subtle);
  padding-top: var(--space-lg);
  font-size: 0.82rem;
  color: var(--text-dim);
  text-align: center;
}

/* --------------------------------------------------------------------------
   18. STICKY MOBILE BOTTOM NAVIGATION (Mobile-First UX)
   -------------------------------------------------------------------------- */
.mobile-bottom-bar {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  height: 64px;
  background: rgba(12, 4, 6, 0.96);
  border-top: 1px solid var(--border-medium);
  backdrop-filter: blur(16px);
  z-index: 1000;
  justify-content: space-around;
  align-items: center;
  padding: 0 var(--space-xs);
}

@media (max-width: 768px) {
  .mobile-bottom-bar {
    display: flex;
  }
}

.bottom-bar-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  font-size: 0.72rem;
  font-weight: 600;
  text-decoration: none;
  gap: 3px;
  flex: 1;
}

.bottom-bar-item svg {
  width: 22px;
  height: 22px;
}

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

.bottom-bar-item.highlight {
  position: relative;
  top: -12px;
}

.bottom-bar-item.highlight .icon-circle {
  width: 48px;
  height: 48px;
  background: var(--brand-gold-gradient);
  border: 3px solid var(--bg-canvas);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #1a0505;
  box-shadow: 0 4px 12px rgba(255, 215, 0, 0.5);
}
