/**
 * variables.css
 * 
 * This file contains all the CSS variables used throughout the website.
 * Defining colors and other values centrally makes theme switching and
 * maintenance much easier.
 */

:root {
    /* Primary color palette */
    --primary: #3498db;
    --primary-dark: #2980b9;
    --secondary: #e74c3c;
    --dark: #2c3e50;
    --light: #ecf0f1;
    --gray: #95a5a6;
    --success: #2ecc71;
    
    /* Light mode theme variables */
    --background: #ecf0f1;
    --text-color: var(--dark);
    --card-bg: white;
    --header-bg: rgba(255, 255, 255, 0.95);
    --footer-bg: #1a2530;
    --footer-text: rgba(255, 255, 255, 0.7);
    --section-alt-bg: #f8f9fa;
    --box-shadow: rgba(0, 0, 0, 0.05);
    --box-shadow-hover: rgba(0, 0, 0, 0.1);
    --border-color: #eee;
    --form-bg: rgba(255, 255, 255, 1);
    --form-field-bg: #e2e8f0;
    
    /* Animation speeds */
    --transition-slow: 0.5s ease;
    --transition-medium: 0.3s ease;
    --transition-fast: 0.2s ease;
    
    /* Font sizes */
    --font-small: 0.9rem;
    --font-medium: 1rem;
    --font-large: 1.2rem;
    --font-xlarge: 1.5rem;
    --font-xxlarge: 2.5rem;
    
    /* Spacing */
    --spacing-xs: 5px;
    --spacing-sm: 10px;
    --spacing-md: 20px;
    --spacing-lg: 30px;
    --spacing-xl: 60px;
    
    /* Border radius */
    --radius-small: 5px;
    --radius-medium: 10px;
    --radius-large: 15px;
    --radius-round: 30px;
    --radius-circle: 50%;
}

/* Dark mode theme variables */
[data-theme="dark"] {
    --primary: #48a9e6;
    --primary-dark: #2980b9;
    --secondary: #e74c3c;
    --dark: #ecf0f1;
    --light: #1a2530;
    --gray: #95a5a6;
    --success: #2ecc71;
    
    --background: #0f172a;
    --text-color: #ecf0f1;
    --card-bg: #1e2531;
    --header-bg: rgba(15, 23, 42, 0.95);
    --footer-bg: #0f172a;
    --footer-text: rgba(255, 255, 255, 0.7);
    --section-alt-bg: #1e293b;
    --box-shadow: rgba(0, 0, 0, 0.2);
    --box-shadow-hover: rgba(0, 0, 0, 0.3);
    --border-color: #2d3748;
    --form-bg: rgba(15, 23, 42, 0.5);
    --form-field-bg: rgba(30, 41, 59, 0.5);
}