/* ==========================================================================
   PHMACAO CASINO DESIGN SYSTEM: TOKENS & CORE THEME (casino-theme.css)
   Target Market: Philippines iGaming Affiliate
   Aesthetic: High-Octane Luxury Macao Casino Vibe + Modern Mobile App Experience
   Compliance: PAGCOR, 21+ Age Gate, E-E-A-T Trust Architecture
   ========================================================================== */

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

  /* Regal Macao Gold & High-Conversion Accents */
  --color-gold: #FFB800;
  --color-gold-hover: #FFA000;
  --color-gold-light: #FFE082;
  --color-gold-glow: rgba(255, 184, 0, 0.45);
  --color-gold-gradient: linear-gradient(135deg, #FFE082 0%, #FFB800 50%, #E65100 100%);
  --color-gold-text: #FFD54F;

  /* Verification & Action Emerald */
  --color-emerald: #00C853;
  --color-emerald-hover: #00A844;
  --color-emerald-glow: rgba(0, 200, 83, 0.4);
  --color-emerald-subtle: rgba(0, 200, 83, 0.12);

  /* Alert Crimson & Neon Purple */
  --color-crimson: #EF4444;
  --color-crimson-glow: rgba(239, 68, 68, 0.35);
  --color-purple: #9333EA;
  --color-purple-glow: rgba(147, 51, 234, 0.4);

  /* Surfaces & Backgrounds (Dark Rich Luxury Gaming Atmosphere) */
  --surface-canvas: #060913;
  --surface-canvas-subtle: #0B101F;
  --surface-card: #0F172A;
  --surface-card-hover: #172238;
  --surface-elevated: #1E293B;
  --surface-glass: rgba(15, 23, 42, 0.88);
  --surface-glass-border: rgba(255, 255, 255, 0.12);
  --surface-glass-gold: rgba(255, 184, 0, 0.08);

  /* Text & Typography */
  --text-primary: #F8FAFC;
  --text-secondary: #CBD5E1;
  --text-muted: #94A3B8;
  --text-inverse: #060913;
  --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 & Neon Ambient Glows */
  --shadow-card: 0 4px 20px -2px rgba(0, 0, 0, 0.5), 0 2px 6px -1px rgba(0, 0, 0, 0.35);
  --shadow-elevated: 0 12px 35px -5px rgba(0, 0, 0, 0.65), 0 6px 15px -4px rgba(0, 0, 0, 0.4);
  --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);
  --shadow-neon-button: 0 4px 15px rgba(255, 184, 0, 0.45);

  /* Layout Standards */
  --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%, #101B33 0%, #060913 55%, #03050B 100%);
}

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

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

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

/* Flashy Casino Container Backgrounds */
.casino-bg-hero {
  background: linear-gradient(180deg, rgba(6, 9, 19, 0.72) 0%, rgba(6, 9, 19, 0.94) 100%),
              url('/assets/images/casino-hero-bg.webp') center center / cover no-repeat;
  position: relative;
}

.casino-bg-neon {
  background: linear-gradient(180deg, rgba(11, 16, 31, 0.75) 0%, rgba(6, 9, 19, 0.96) 100%),
              url('/assets/images/casino-neon-bg.webp') center center / cover no-repeat;
  position: relative;
}

.casino-bg-tables {
  background: linear-gradient(180deg, rgba(11, 16, 31, 0.8) 0%, rgba(6, 9, 19, 0.96) 100%),
              url('/assets/images/casino-chips-bg.webp') center center / cover no-repeat;
  position: relative;
}

.casino-bg-sparks {
  background: linear-gradient(180deg, rgba(15, 23, 42, 0.82) 0%, rgba(6, 9, 19, 0.96) 100%),
              url('/assets/images/casino-gold-sparks.webp') center center / cover no-repeat;
  position: relative;
}

/* Glowing Ambient Accents & Keyframes */
@keyframes goldShimmer {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

@keyframes pulseGlow {
  0%, 100% { box-shadow: 0 0 15px rgba(255, 184, 0, 0.3); }
  50% { box-shadow: 0 0 30px rgba(255, 184, 0, 0.6); }
}

@keyframes floatGentle {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(-4px); }
}

.text-gold-gradient {
  background: var(--color-gold-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  display: inline-block;
  font-weight: 800;
}

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

.glow-box-primary {
  box-shadow: var(--shadow-primary-glow);
}

.glow-box-emerald {
  box-shadow: var(--shadow-emerald-glow);
}

/* Glassmorphic Panel Utility */
.glass-panel {
  background: var(--surface-glass);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--surface-glass-border);
  border-radius: var(--radius-lg);
}

.glass-panel-gold {
  background: linear-gradient(135deg, rgba(255, 184, 0, 0.08) 0%, rgba(15, 23, 42, 0.88) 100%);
  border: 1px solid var(--border-gold);
  backdrop-filter: blur(12px);
  border-radius: var(--radius-lg);
}
