/* ==========================================================================
   JILIASIA CASINO DESIGN SYSTEM: TOKENS & CORE THEME (casino-theme.css)
   Target Market: Philippines iGaming Affiliate
   Aesthetic: Modern Fintech App + High-Octane Casino Glow & Ambient Effects
   Compliance: PAGCOR, 21+ Age Gate, E-E-A-T Trust Architecture
   ========================================================================== */

:root {
  /* Brand Colors */
  --color-primary: #1E88E5;
  --color-primary-hover: #1565C0;
  --color-primary-glow: rgba(30, 136, 229, 0.4);
  --color-primary-subtle: rgba(30, 136, 229, 0.12);

  /* Conversion Accents */
  --color-emerald: #00C853;
  --color-emerald-hover: #00A844;
  --color-emerald-glow: rgba(0, 200, 83, 0.4);
  
  --color-gold: #FFB800;
  --color-gold-hover: #FFA000;
  --color-gold-light: #FFE082;
  --color-gold-glow: rgba(255, 184, 0, 0.45);
  
  --color-crimson: #EF4444;
  --color-purple: #8B5CF6;
  --color-purple-glow: rgba(139, 92, 246, 0.35);

  /* Surfaces & Backgrounds (Dark Rich Luxury Gaming Aesthetic) */
  --surface-canvas: #0A0E17;
  --surface-canvas-subtle: #0F172A;
  --surface-card: #141E33;
  --surface-card-hover: #1A2744;
  --surface-elevated: #1E2D4A;
  --surface-glass: rgba(20, 30, 51, 0.85);
  --surface-glass-border: rgba(255, 255, 255, 0.1);
  --surface-glass-gold: rgba(255, 184, 0, 0.08);

  /* Text & Typography */
  --text-primary: #F8FAFC;
  --text-secondary: #CBD5E1;
  --text-muted: #94A3B8;
  --text-inverse: #0F172A;
  --text-gold: #FFD54F;
  --text-emerald: #4ADE80;

  /* Borders & Dividers */
  --border-subtle: rgba(255, 255, 255, 0.08);
  --border-medium: rgba(255, 255, 255, 0.16);
  --border-gold: rgba(255, 184, 0, 0.35);
  --border-emerald: rgba(0, 200, 83, 0.35);

  /* Radii */
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 18px;
  --radius-xl: 24px;
  --radius-full: 9999px;

  /* Shadows & Glows */
  --shadow-card: 0 4px 20px -2px rgba(0, 0, 0, 0.4), 0 2px 6px -1px rgba(0, 0, 0, 0.25);
  --shadow-elevated: 0 12px 35px -5px rgba(0, 0, 0, 0.5), 0 6px 15px -4px rgba(0, 0, 0, 0.3);
  --shadow-gold-glow: 0 0 25px rgba(255, 184, 0, 0.35);
  --shadow-primary-glow: 0 0 25px rgba(30, 136, 229, 0.4);
  --shadow-emerald-glow: 0 0 25px rgba(0, 200, 83, 0.4);

  /* Layout */
  --container-max: 1240px;
  --header-height: 72px;
}

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

html {
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Plus Jakarta Sans", "Inter", "Segoe UI", Roboto, sans-serif;
  background-color: var(--surface-canvas);
  color: var(--text-primary);
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
}

body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
  font-size: 16px;
  line-height: 1.65;
  background: radial-gradient(circle at 50% 0%, #152238 0%, #0A0E17 55%, #070A10 100%);
}

a {
  color: inherit;
  text-decoration: none;
  transition: all 0.2s ease;
}

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

/* Typography Hierarchy */
h1, h2, h3, h4, h5, h6 {
  color: var(--text-primary);
  font-weight: 700;
  line-height: 1.25;
}

h1 {
  font-size: clamp(28px, 5vw, 46px);
  letter-spacing: -0.02em;
}

h2 {
  font-size: clamp(22px, 3.8vw, 34px);
  margin-bottom: 1rem;
  letter-spacing: -0.015em;
}

h3 {
  font-size: clamp(18px, 2.8vw, 24px);
  margin-bottom: 0.75rem;
}

p {
  color: var(--text-secondary);
  margin-bottom: 1.25rem;
}

.container {
  width: 100%;
  max-width: var(--container-max);
  margin-left: auto;
  margin-right: auto;
  padding-left: 20px;
  padding-right: 20px;
}

/* ==========================================================================
   CASINO AMBIENT BACKGROUNDS & FLASHY EFFECTS
   ========================================================================== */

/* First Container Casino Hero Background */
.casino-hero-container {
  position: relative;
  width: 100%;
  min-height: 520px;
  padding: 80px 20px 60px;
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
  display: flex;
  align-items: center;
  overflow: hidden;
  border-bottom: 2px solid var(--border-gold);
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.6);
}

.casino-hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(10, 14, 23, 0.55) 0%, rgba(10, 14, 23, 0.78) 65%, #0A0E17 100%),
              radial-gradient(circle at 65% 35%, rgba(255, 184, 0, 0.22) 0%, transparent 65%);
  z-index: 1;
}

.casino-hero-particles {
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(255, 215, 0, 0.20) 1.5px, transparent 1.5px),
                    radial-gradient(rgba(30, 136, 229, 0.18) 1.5px, transparent 1.5px);
  background-size: 40px 40px, 60px 60px;
  background-position: 0 0, 20px 20px;
  z-index: 2;
  opacity: 0.7;
  animation: particleShift 25s linear infinite;
}

@keyframes particleShift {
  0% { transform: translateY(0); }
  100% { transform: translateY(-60px); }
}

.casino-hero-content {
  position: relative;
  z-index: 3;
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
}

.casino-hero-content h1 {
  text-shadow: 0 3px 15px rgba(0, 0, 0, 0.95), 0 0 35px rgba(255, 184, 0, 0.3);
}

.casino-hero-content p {
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.9);
}

/* Flashy Casino Container Shimmer */
.casino-flash-container {
  position: relative;
  background: linear-gradient(135deg, rgba(20, 30, 51, 0.95) 0%, rgba(15, 23, 42, 0.95) 100%);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-xl);
  padding: 36px;
  margin: 40px 0;
  box-shadow: var(--shadow-card);
  overflow: hidden;
}

.casino-flash-container::before {
  content: "";
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(255, 184, 0, 0.08) 0%, transparent 50%);
  animation: pulseGlow 6s ease-in-out infinite alternate;
  pointer-events: none;
}

@keyframes pulseGlow {
  0% { transform: scale(0.9) rotate(0deg); opacity: 0.5; }
  100% { transform: scale(1.1) rotate(10deg); opacity: 1; }
}

/* Glowing Neon & Gold Accents */
.text-gold-gradient {
  background: linear-gradient(135deg, #FFF9C4 0%, #FFD54F 50%, #FFB300 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.text-azure-gradient {
  background: linear-gradient(135deg, #E3F2FD 0%, #64B5F6 50%, #1E88E5 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.gold-glow-border {
  border: 1px solid var(--border-gold);
  box-shadow: 0 0 15px rgba(255, 184, 0, 0.2);
}

.gold-glow-border:hover {
  border-color: var(--color-gold);
  box-shadow: var(--shadow-gold-glow);
}

/* CTA Pill Buttons */
.btn-cta-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background: linear-gradient(135deg, #FFC107 0%, #FF9800 100%);
  color: #0F172A;
  font-weight: 700;
  font-size: 16px;
  padding: 14px 28px;
  border-radius: var(--radius-full);
  border: none;
  cursor: pointer;
  box-shadow: 0 4px 20px rgba(255, 152, 0, 0.4);
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  min-height: 48px;
  text-decoration: none;
  white-space: nowrap;
}

.btn-cta-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 25px rgba(255, 152, 0, 0.6);
  background: linear-gradient(135deg, #FFCA28 0%, #FFA726 100%);
}

.btn-cta-emerald {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background: linear-gradient(135deg, #00E676 0%, #00C853 100%);
  color: #0A0E17;
  font-weight: 700;
  font-size: 16px;
  padding: 14px 28px;
  border-radius: var(--radius-full);
  border: none;
  cursor: pointer;
  box-shadow: 0 4px 20px rgba(0, 200, 83, 0.35);
  transition: all 0.25s ease;
  min-height: 48px;
  text-decoration: none;
  white-space: nowrap;
}

.btn-cta-emerald:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 25px rgba(0, 200, 83, 0.55);
}

.btn-cta-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.08);
  color: var(--text-primary);
  font-weight: 600;
  font-size: 15px;
  padding: 12px 24px;
  border-radius: var(--radius-full);
  border: 1px solid var(--border-medium);
  backdrop-filter: blur(8px);
  cursor: pointer;
  transition: all 0.2s ease;
  min-height: 48px;
  text-decoration: none;
  white-space: nowrap;
}

.btn-cta-secondary:hover {
  background: rgba(255, 255, 255, 0.15);
  border-color: rgba(255, 255, 255, 0.3);
  transform: translateY(-1px);
}

/* Badges */
.badge-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 4px 12px;
  border-radius: var(--radius-full);
  white-space: nowrap;
}

.badge-gold {
  background: rgba(255, 184, 0, 0.15);
  color: var(--text-gold);
  border: 1px solid var(--border-gold);
}

.badge-emerald {
  background: rgba(0, 200, 83, 0.15);
  color: var(--text-emerald);
  border: 1px solid var(--border-emerald);
}

.badge-primary {
  background: rgba(30, 136, 229, 0.15);
  color: #64B5F6;
  border: 1px solid rgba(30, 136, 229, 0.35);
}
