/**
 * Bigisub Theme Variables
 * Shared theme colors and styles for consistent theming across all pages
 * Include this file in all pages that need theme support
 */

:root {
    /* Bigisub Brand Colors */
    --brand-primary: #37517e;
    --brand-primary-dark: #2a3d5f;
    --brand-primary-light: #4a6799;
    --brand-accent: #ffd700;
    --brand-bg-light: #f5f5fa;

    /* Light Mode (Default) */
    --color-bg: #ffffff;
    --color-surface: #f5f5fa;
    --color-surface-elevated: #ffffff;
    --color-text: #1e293b;
    --color-text-muted: #64748b;
    --color-border: rgba(55, 81, 126, 0.1);

    /* Gradients */
    --gradient-primary: linear-gradient(135deg, #37517e 0%, #4a6799 100%);
    --gradient-accent: linear-gradient(135deg, #ffd700 0%, #ffed4e 100%);
    --gradient-mesh: radial-gradient(at 20% 30%, rgba(55, 81, 126, 0.15) 0px, transparent 50%),
                     radial-gradient(at 80% 70%, rgba(255, 215, 0, 0.1) 0px, transparent 50%),
                     radial-gradient(at 50% 50%, rgba(245, 245, 250, 0.3) 0px, transparent 50%);

    /* Shadows */
    --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
    --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1);
    --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1);
    --shadow-xl: 0 20px 25px -5px rgb(0 0 0 / 0.1);
    --shadow-glow: 0 0 30px rgba(55, 81, 126, 0.5);
    --shadow-glow-accent: 0 0 40px rgba(255, 215, 0, 0.4);

    /* Border Radius */
    --radius-sm: 0.5rem;
    --radius-md: 1rem;
    --radius-lg: 1.5rem;
    --radius-xl: 2rem;
    --radius-full: 9999px;

    /* Transitions */
    --transition-fast: 150ms cubic-bezier(0.4, 0, 0.2, 1);
    --transition-base: 300ms cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: 500ms cubic-bezier(0.4, 0, 0.2, 1);
    --transition-spring: 600ms cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* Dark Mode Override */
body.dark-mode {
    --color-bg: #0a0e1a;
    --color-surface: #111827;
    --color-surface-elevated: #1f2937;
    --color-text: #f9fafb;
    --color-text-muted: #9ca3af;
    --color-border: rgba(255, 255, 255, 0.1);
    --gradient-mesh: radial-gradient(at 20% 30%, rgba(55, 81, 126, 0.3) 0px, transparent 50%),
                     radial-gradient(at 80% 70%, rgba(255, 215, 0, 0.2) 0px, transparent 50%),
                     radial-gradient(at 50% 50%, rgba(42, 61, 95, 0.2) 0px, transparent 50%);
}

/* Base Body Styles */
body {
    background: var(--color-bg);
    color: var(--color-text);
    transition: background-color var(--transition-base), color var(--transition-base);
}

/* Theme Toggle Button Styles */
.theme-toggle {
    background: none;
    border: 2px solid var(--color-border);
    border-radius: var(--radius-full);
    padding: 0.5rem 1rem;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--color-text);
    font-size: 1rem;
    transition: all var(--transition-base);
}

.theme-toggle:hover {
    border-color: var(--brand-primary);
    transform: translateY(-2px);
}

.theme-icon {
    font-size: 1.2rem;
    line-height: 1;
}
