/* ===== HEROSWIPE<3 - THEMES ===== */

/* ===== ENHANCED DARK THEME (Default) ===== */
body[data-theme="dark"] {
    /* Background Colors */
    --color-bg-primary: #0a0a0f;
    --color-bg-secondary: #12121a;
    --color-bg-tertiary: #1a1a24;
    --color-bg-elevated: #22222e;
    --color-bg-overlay: rgba(10, 10, 15, 0.9);
    --color-bg-glass: rgba(34, 34, 46, 0.8);
    --color-bg-card: rgba(26, 26, 36, 0.95);
    
    /* Text Colors */
    --color-text-primary: #ffffff;
    --color-text-secondary: #e4e4e7;
    --color-text-tertiary: #a1a1aa;
    --color-text-muted: #71717a;
    --color-text-inverse: #0a0a0f;
    --color-text-accent: #f3f4f6;
    
    /* Border Colors */
    --color-border-primary: rgba(255, 255, 255, 0.1);
    --color-border-secondary: rgba(255, 255, 255, 0.08);
    --color-border-tertiary: rgba(255, 255, 255, 0.05);
    --color-border-accent: rgba(255, 255, 255, 0.2);
    
    /* Brand Colors */
    --color-primary: #8b5cf6;
    --color-primary-hover: #a78bfa;
    --color-primary-active: #7c3aed;
    --color-primary-light: rgba(139, 92, 246, 0.1);
    --color-primary-dark: #6d28d9;
    
    --color-secondary: #ec4899;
    --color-secondary-hover: #f472b6;
    --color-secondary-active: #db2777;
    --color-secondary-light: rgba(236, 72, 153, 0.1);
    --color-secondary-dark: #be185d;
    
    --color-accent: #d946ef;
    --color-accent-hover: #e879f9;
    --color-accent-active: #c026d3;
    --color-accent-light: rgba(217, 70, 239, 0.1);
    
    /* Status Colors */
    --color-success: #10b981;
    --color-success-hover: #34d399;
    --color-success-light: rgba(16, 185, 129, 0.1);
    
    --color-warning: #f59e0b;
    --color-warning-hover: #fbbf24;
    --color-warning-light: rgba(245, 158, 11, 0.1);
    
    --color-error: #ef4444;
    --color-error-hover: #f87171;
    --color-error-light: rgba(239, 68, 68, 0.1);
    
    --color-info: #3b82f6;
    --color-info-hover: #60a5fa;
    --color-info-light: rgba(59, 130, 246, 0.1);
    
    /* Premium Gradients */
    --gradient-primary: linear-gradient(135deg, #8b5cf6 0%, #ec4899 50%, #d946ef 100%);
    --gradient-secondary: linear-gradient(135deg, #ec4899 0%, #d946ef 50%, #8b5cf6 100%);
    --gradient-accent: linear-gradient(135deg, #d946ef 0%, #8b5cf6 50%, #ec4899 100%);
    --gradient-success: linear-gradient(135deg, #10b981 0%, #34d399 100%);
    --gradient-warning: linear-gradient(135deg, #f59e0b 0%, #fbbf24 100%);
    --gradient-error: linear-gradient(135deg, #ef4444 0%, #f87171 100%);
    --gradient-glass: linear-gradient(135deg, rgba(255, 255, 255, 0.1) 0%, rgba(255, 255, 255, 0.05) 100%);
    --gradient-card: linear-gradient(135deg, rgba(139, 92, 246, 0.1) 0%, rgba(236, 72, 153, 0.05) 100%);
    
    /* Shadow Colors */
    --shadow-primary: 0 25px 50px -12px rgba(139, 92, 246, 0.25);
    --shadow-secondary: 0 25px 50px -12px rgba(236, 72, 153, 0.25);
    --shadow-accent: 0 25px 50px -12px rgba(217, 70, 239, 0.25);
    --shadow-card: 0 20px 40px -10px rgba(0, 0, 0, 0.3);
    --shadow-elevated: 0 32px 64px -12px rgba(0, 0, 0, 0.4);
}

/* ===== ENHANCED LIGHT THEME ===== */
body[data-theme="light"] {
    /* Background Colors */
    --color-bg-primary: #ffffff;
    --color-bg-secondary: #f8fafc;
    --color-bg-tertiary: #f1f5f9;
    --color-bg-elevated: #ffffff;
    --color-bg-overlay: rgba(255, 255, 255, 0.95);
    --color-bg-glass: rgba(255, 255, 255, 0.8);
    --color-bg-card: rgba(255, 255, 255, 0.95);
    
    /* Text Colors */
    --color-text-primary: #0f172a;
    --color-text-secondary: #334155;
    --color-text-tertiary: #64748b;
    --color-text-muted: #94a3b8;
    --color-text-inverse: #ffffff;
    --color-text-accent: #1e293b;
    
    /* Border Colors */
    --color-border-primary: rgba(15, 23, 42, 0.1);
    --color-border-secondary: rgba(15, 23, 42, 0.08);
    --color-border-tertiary: rgba(15, 23, 42, 0.05);
    --color-border-accent: rgba(15, 23, 42, 0.2);
    
    /* Brand Colors */
    --color-primary: #7c3aed;
    --color-primary-hover: #8b5cf6;
    --color-primary-active: #6d28d9;
    --color-primary-light: rgba(124, 58, 237, 0.1);
    --color-primary-dark: #5b21b6;
    
    --color-secondary: #db2777;
    --color-secondary-hover: #ec4899;
    --color-secondary-active: #be185d;
    --color-secondary-light: rgba(219, 39, 119, 0.1);
    --color-secondary-dark: #9d174d;
    
    --color-accent: #c026d3;
    --color-accent-hover: #d946ef;
    --color-accent-active: #a21caf;
    --color-accent-light: rgba(192, 38, 211, 0.1);
    
    /* Status Colors */
    --color-success: #059669;
    --color-success-hover: #10b981;
    --color-success-light: rgba(5, 150, 105, 0.1);
    
    --color-warning: #d97706;
    --color-warning-hover: #f59e0b;
    --color-warning-light: rgba(217, 119, 6, 0.1);
    
    --color-error: #dc2626;
    --color-error-hover: #ef4444;
    --color-error-light: rgba(220, 38, 38, 0.1);
    
    --color-info: #2563eb;
    --color-info-hover: #3b82f6;
    --color-info-light: rgba(37, 99, 235, 0.1);
    
    /* Premium Gradients */
    --gradient-primary: linear-gradient(135deg, #7c3aed 0%, #db2777 50%, #c026d3 100%);
    --gradient-secondary: linear-gradient(135deg, #db2777 0%, #c026d3 50%, #7c3aed 100%);
    --gradient-accent: linear-gradient(135deg, #c026d3 0%, #7c3aed 50%, #db2777 100%);
    --gradient-success: linear-gradient(135deg, #059669 0%, #10b981 100%);
    --gradient-warning: linear-gradient(135deg, #d97706 0%, #f59e0b 100%);
    --gradient-error: linear-gradient(135deg, #dc2626 0%, #ef4444 100%);
    --gradient-glass: linear-gradient(135deg, rgba(255, 255, 255, 0.9) 0%, rgba(255, 255, 255, 0.7) 100%);
    --gradient-card: linear-gradient(135deg, rgba(124, 58, 237, 0.05) 0%, rgba(219, 39, 119, 0.03) 100%);
    
    /* Shadow Colors */
    --shadow-primary: 0 25px 50px -12px rgba(124, 58, 237, 0.25);
    --shadow-secondary: 0 25px 50px -12px rgba(219, 39, 119, 0.25);
    --shadow-accent: 0 25px 50px -12px rgba(192, 38, 211, 0.25);
    --shadow-card: 0 20px 40px -10px rgba(0, 0, 0, 0.1);
    --shadow-elevated: 0 32px 64px -12px rgba(0, 0, 0, 0.15);
}

/* ===== THEME SPECIFIC ADJUSTMENTS ===== */

/* Dark mode image adjustments */
body[data-theme="dark"] .card img,
body[data-theme="dark"] .character-image-container img,
body[data-theme="dark"] .collection-item img {
    filter: brightness(0.9) contrast(1.1);
}

/* Light mode image adjustments */
body[data-theme="light"] .card img,
body[data-theme="light"] .character-image-container img,
body[data-theme="light"] .collection-item img {
    filter: brightness(1.05) contrast(0.95);
}

/* Theme Toggle Animation - Smooth and Mellow */
.theme-toggle-animation {
    transition: all 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* Optional subtle animation for theme switching - very gentle */
.theme-toggle-animation::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--color-bg-primary);
    opacity: 0;
    pointer-events: none;
    z-index: 9998;
    transition: opacity 0.4s ease-in-out;
}

.theme-toggle-animation.switching::before {
    opacity: 0.02;
} 