/**
 * Light Theme - Light Mode
 * Light casino theme with improved contrast
 */

html[data-theme="light"] {
  color-scheme: light;

  /* Brand Colors - Orange/Amber for light mode */
  --theme-brand-primary: #d97706;
  --theme-brand-primary-hover: #b45309;
  --theme-brand-accent: #ea580c;
  --theme-brand-primary-contrast: #FFFFFF;

  /* Backgrounds - Clean white/gray palette */
  --theme-bg-primary: #f8fafc;
  --theme-bg-secondary: #f1f5f9;
  --theme-surface-base: #ffffff;
  --theme-surface-raised: #f8fafc;
  --theme-surface-elevated: #ffffff;
  --dropdown-bg: #ffffff;

  /* Text - High contrast dark text */
  --theme-text-primary: #0f172a;
  --theme-text-primary-rgb: 15 23 42;
  --theme-text-secondary: #1e293b;
  --theme-text-tertiary: #475569;
  --theme-text-muted: #64748b;

  /* Borders - Visible but subtle */
  --theme-border-base: #e2e8f0;
  --theme-border-subtle: #f1f5f9;
  --theme-border-accent: rgba(217, 119, 6, 0.3);

  /* Semantic Colors - Optimized for light backgrounds */
  --theme-semantic-success: #15803d;
  --theme-semantic-success-hover: #166534;
  --theme-semantic-warning: #b45309;
  --theme-semantic-warning-hover: #92400e;
  --theme-semantic-error: #dc2626;
  --theme-semantic-error-hover: #b91c1c;
  --theme-semantic-info: #7c3aed;
  --theme-semantic-info-hover: #6d28d9;

  /* Casino Special Colors */
  --theme-special-gold: #b45309;
  --theme-special-gold-light: #d97706;
  --theme-special-gold-dark: #92400e;
  --theme-special-vip: #7c3aed;
  --theme-special-vip-dark: #6d28d9;
  --theme-special-cash: #15803d;
  --theme-special-cash-dark: #166534;
  --theme-special-bonus: #b45309;
  --theme-special-bonus-dark: #92400e;

  /* Interactive States */
  --theme-hover-overlay: rgba(0, 0, 0, 0.04);
  --theme-active-overlay: rgba(0, 0, 0, 0.08);
  --theme-focus-ring: rgba(217, 119, 6, 0.5);

  /* Shadows - Softer for light mode */
  --theme-shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --theme-shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.08), 0 2px 4px -2px rgba(0, 0, 0, 0.05);
  --theme-shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.08), 0 4px 6px -4px rgba(0, 0, 0, 0.05);
  --theme-shadow-glow: 0 0 20px rgba(217, 119, 6, 0.15);
}

/* Light theme specific overrides */
[data-theme="light"] body {
  background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 50%, #f8fafc 100%);
}

/* Input styling for light theme */
[data-theme="light"] .input-base {
  background-color: #ffffff;
  border-color: #e2e8f0;
  color: #0f172a;
}

[data-theme="light"] .input-base:focus {
  border-color: #d97706;
  box-shadow: 0 0 0 3px rgba(217, 119, 6, 0.15);
}

[data-theme="light"] .input-base::placeholder {
  color: #94a3b8;
}

/* Card styling for light theme */
[data-theme="light"] .card {
  background: #ffffff;
  border-color: #e2e8f0;
  box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.05);
}

/* Button adjustments */
[data-theme="light"] .btn-primary {
  background-color: #d97706;
  color: #ffffff;
}

[data-theme="light"] .btn-primary:hover {
  background-color: #b45309;
}

[data-theme="light"] .btn-secondary {
  background-color: #f1f5f9;
  border-color: #e2e8f0;
  color: #334155;
}

[data-theme="light"] .btn-secondary:hover {
  background-color: #e2e8f0;
}

/* Scrollbar for light theme */
[data-theme="light"] ::-webkit-scrollbar-track {
  background: #f1f5f9;
}

[data-theme="light"] ::-webkit-scrollbar-thumb {
  background: #cbd5e1;
}

[data-theme="light"] ::-webkit-scrollbar-thumb:hover {
  background: #94a3b8;
}

/* Text utility overrides for light theme */
[data-theme="light"] .text-primary {
  color: #0f172a;
}

[data-theme="light"] .text-secondary {
  color: #1e293b;
}

[data-theme="light"] .text-tertiary {
  color: #475569;
}

[data-theme="light"] .text-muted {
  color: #64748b;
}

/* Game card text */
[data-theme="light"] .game-card-title {
  color: #0f172a;
}

[data-theme="light"] .game-card-provider {
  color: var(--game-card-provider-text);
}

/* Navigation links */
[data-theme="light"] .sidebar-link {
  color: #334155;
}

[data-theme="light"] .sidebar-link:hover {
  color: #0f172a;
  background-color: rgba(0, 0, 0, 0.06);
}

/* Header - override handled by color-mix with --theme-bg-primary in Header.astro */

/* Mobile menu */
[data-theme="light"] .mobile-menu {
  background-color: #ffffff;
}

/* Modal backgrounds */
[data-theme="light"] .modal-backdrop {
  background-color: rgba(0, 0, 0, 0.3);
}

[data-theme="light"] .modal-content {
  background-color: #ffffff;
  border-color: #e2e8f0;
}

/* Form labels */
[data-theme="light"] label {
  color: #334155;
}

/* Links */
[data-theme="light"] a {
  color: inherit;
}

[data-theme="light"] a.text-brand {
  color: #b45309;
}

[data-theme="light"] a.text-brand:hover {
  color: #92400e;
}

/* ========================================
   EXTENDED SEMANTIC VARIABLES
   ======================================== */

/* Input Fields */
html[data-theme="light"] {
  --input-bg: #ffffff;
  --input-border: #e2e8f0;
  --input-border-focus: var(--theme-brand-primary);
  --input-text: var(--theme-text-primary);
  --input-placeholder: #94a3b8;
  --input-disabled-bg: #f1f5f9;
  --input-disabled-border: #e2e8f0;

  /* Modal & Overlay */
  --modal-bg: #ffffff;
  --modal-border: #e2e8f0;
  --modal-overlay: rgba(15, 23, 42, 0.5);
  --modal-header-bg: #f8fafc;

  /* Button Semantic */
  --button-primary-bg: var(--theme-brand-primary);
  --button-primary-hover: var(--theme-brand-primary-hover);
  --button-primary-text: #ffffff;
  --button-secondary-bg: #f1f5f9;
  --button-secondary-hover: #e2e8f0;
  --button-secondary-text: #334155;
  --button-success-bg: var(--theme-semantic-success);
  --button-success-hover: var(--theme-semantic-success-hover);
  --button-success-text: #ffffff;
  --button-warning-bg: var(--theme-semantic-warning);
  --button-warning-hover: var(--theme-semantic-warning-hover);
  --button-warning-text: #ffffff;
  --button-error-bg: var(--theme-semantic-error);
  --button-error-hover: var(--theme-semantic-error-hover);
  --button-error-text: #ffffff;

  /* Card Variants */
  --card-success-bg-from: rgba(21, 128, 61, 0.08);
  --card-success-bg-to: rgba(21, 128, 61, 0.04);
  --card-success-border: rgba(21, 128, 61, 0.2);
  --card-success-icon-bg: rgba(21, 128, 61, 0.15);
  --card-success-hover-glow: rgba(21, 128, 61, 0.15);

  --card-warning-bg-from: rgba(180, 83, 9, 0.08);
  --card-warning-bg-to: rgba(180, 83, 9, 0.04);
  --card-warning-border: rgba(180, 83, 9, 0.2);
  --card-warning-icon-bg: rgba(180, 83, 9, 0.15);
  --card-warning-hover-glow: rgba(180, 83, 9, 0.15);

  --card-error-bg-from: rgba(220, 38, 38, 0.08);
  --card-error-bg-to: rgba(220, 38, 38, 0.04);
  --card-error-border: rgba(220, 38, 38, 0.2);
  --card-error-icon-bg: rgba(220, 38, 38, 0.15);
  --card-error-hover-glow: rgba(220, 38, 38, 0.15);

  --card-info-bg-from: rgba(124, 58, 237, 0.08);
  --card-info-bg-to: rgba(124, 58, 237, 0.04);
  --card-info-border: rgba(124, 58, 237, 0.2);
  --card-info-icon-bg: rgba(124, 58, 237, 0.15);
  --card-info-hover-glow: rgba(124, 58, 237, 0.15);

  --card-primary-bg-from: rgba(217, 119, 6, 0.08);
  --card-primary-bg-to: rgba(217, 119, 6, 0.04);
  --card-primary-border: rgba(217, 119, 6, 0.2);
  --card-primary-icon-bg: rgba(217, 119, 6, 0.15);
  --card-primary-hover-glow: rgba(217, 119, 6, 0.15);

  /* Badge Variants */
  --badge-orange-bg: var(--theme-brand-primary);
  --badge-orange-text: #ffffff;
  --badge-gold-bg: var(--theme-special-gold);
  --badge-gold-text: #0f172a;
  --badge-vip-bg: var(--theme-special-vip);
  --badge-vip-text: #ffffff;

  /* Navigation */
  --nav-bg: #ffffff;
  --nav-border: #e2e8f0;
  --nav-item-hover: rgba(0, 0, 0, 0.04);
  --nav-item-active: var(--theme-brand-primary);
  --nav-item-text: #334155;
  --nav-item-text-active: var(--theme-brand-primary);

  /* Progress & Meters */
  --progress-bg: #e2e8f0;
  --progress-fill-success: var(--theme-semantic-success);
  --progress-fill-warning: var(--theme-semantic-warning);
  --progress-fill-primary: var(--theme-brand-primary);

  /* Casino-Specific */
  --balance-cash-color: var(--theme-special-cash);
  --balance-bonus-color: var(--theme-special-bonus);
  --balance-total-color: var(--theme-text-primary);
  --game-jackpot-color: var(--theme-special-gold);
  --game-hot-color: var(--theme-semantic-error);
  --game-new-color: var(--theme-brand-primary);
  --game-card-gradient-overlay: linear-gradient(
    rgba(0, 0, 0, 0) 14.29%,
    rgba(35, 36, 54, 0.96) 69.33%,
    #191a27
  );
  --game-card-hover-overlay-bg: rgba(17, 18, 30, 0.8);
  --game-card-provider-text: #475569;

  /* Scrollbar */
  --scrollbar-track-bg: #f1f5f9;
  --scrollbar-thumb-bg: #cbd5e1;
  --scrollbar-thumb-hover-bg: #94a3b8;

  /* Luxury Metallics - Warm tones for light theme */
  --theme-luxury-platinum: #9CA3AF;
  --theme-luxury-rose-gold: #B76E79;
  --theme-luxury-champagne: #D4A574;

  /* VIP Tier Colors */
  --theme-vip-bronze: #CD7F32;
  --theme-vip-silver: #9CA3AF;
  --theme-vip-gold: #D4A574;
  --theme-vip-platinum: #6B7280;
  --theme-vip-diamond: #7DD3FC;

  /* Premium Effects */
  --theme-card-premium-glow: 0 0 30px rgba(212, 165, 116, 0.3);

  /* Social Icons - dark icons for light theme */
  --social-icon-filter: brightness(0);
  --social-link-border: #e2e8f0;
}
