/**
 * Eco Club Theme System
 * Centralized color variables for consistent theming across all pages
 */

:root {
    /* Primary Brand Colors - Green Theme */
    --theme-primary: #1b4332;
    --theme-primary-dark: #081c15;
    --theme-primary-light: #2d6a4f;
    --theme-primary-accent: #40916c;
    --theme-primary-lighter: #52b788;
    
    /* Secondary Brand Colors */
    --theme-secondary: #006987;
    --theme-secondary-dark: #004a5f;
    --theme-secondary-light: #0087a7;
    
    /* Accent Colors */
    --theme-accent-green: #4fdb16;
    --theme-accent-teal: #0998a6;
    --theme-accent-blue: #3498db;
    --theme-accent-orange: #f39c12;
    --theme-accent-red: #e74c3c;
    --theme-accent-purple: #9b59b6;
    
    /* Neutral Colors */
    --theme-white: #ffffff;
    --theme-gray-50: #f8faf9;
    --theme-gray-100: #f1f5f9;
    --theme-gray-200: #e2e8f0;
    --theme-gray-300: #cbd5e1;
    --theme-gray-400: #94a3b8;
    --theme-gray-500: #64748b;
    --theme-gray-600: #475569;
    --theme-gray-700: #334155;
    --theme-gray-800: #1e293b;
    --theme-gray-900: #0f172a;
    --theme-black: #000000;
    
    /* Text Colors */
    --theme-text-primary: #1e293b;
    --theme-text-secondary: #64748b;
    --theme-text-muted: #94a3b8;
    --theme-text-light: #f8faf9;
    --theme-text-white: #ffffff;
    
    /* Background Colors */
    --theme-bg-primary: #ffffff;
    --theme-bg-secondary: #f8faf9;
    --theme-bg-light: #f1f5f9;
    --theme-bg-dark: #1e293b;
    --theme-bg-darker: #0f172a;
    
    /* Border Colors */
    --theme-border-light: #e2e8f0;
    --theme-border-medium: #cbd5e1;
    --theme-border-dark: #94a3b8;
    
    /* Status Colors */
    --theme-success: #40916c;
    --theme-success-light: #52b788;
    --theme-warning: #f39c12;
    --theme-danger: #e74c3c;
    --theme-info: #3498db;
    
    /* Gradient Colors */
    --theme-gradient-primary: linear-gradient(135deg, var(--theme-primary) 0%, var(--theme-primary-light) 100%);
    --theme-gradient-secondary: linear-gradient(135deg, var(--theme-secondary) 0%, var(--theme-secondary-light) 100%);
    --theme-gradient-accent: linear-gradient(135deg, var(--theme-accent-green) 0%, var(--theme-accent-teal) 100%);
    --theme-gradient-hero: linear-gradient(180deg, var(--theme-accent-green), var(--theme-accent-teal));
    
    /* Shadow Colors */
    --theme-shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --theme-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06);
    --theme-shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --theme-shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --theme-shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    
    /* Component Specific Colors */
    --theme-header-bg: var(--theme-primary);
    --theme-navbar-bg: var(--theme-white);
    --theme-footer-bg: var(--theme-primary-dark);
    --theme-card-bg: var(--theme-white);
    --theme-btn-primary: var(--theme-primary);
    --theme-btn-primary-hover: var(--theme-primary-dark);
    
    /* Spacing */
    --theme-spacing-xs: 0.25rem;
    --theme-spacing-sm: 0.5rem;
    --theme-spacing-md: 1rem;
    --theme-spacing-lg: 1.5rem;
    --theme-spacing-xl: 2rem;
    --theme-spacing-2xl: 3rem;
    
    /* Border Radius */
    --theme-radius-sm: 0.25rem;
    --theme-radius-md: 0.5rem;
    --theme-radius-lg: 0.75rem;
    --theme-radius-xl: 1rem;
    --theme-radius-2xl: 1.5rem;
    --theme-radius-full: 9999px;
    
    /* Transitions */
    --theme-transition-fast: 150ms ease-in-out;
    --theme-transition-base: 250ms ease-in-out;
    --theme-transition-slow: 350ms ease-in-out;
}

/* Dark Theme Support */
@media (prefers-color-scheme: dark) {
    :root {
        --theme-text-primary: #f8faf9;
        --theme-text-secondary: #cbd5e1;
        --theme-text-muted: #94a3b8;
        --theme-bg-primary: #1e293b;
        --theme-bg-secondary: #0f172a;
        --theme-bg-light: #334155;
        --theme-card-bg: #1e293b;
        --theme-border-light: #334155;
        --theme-border-medium: #475569;
    }
}

/* Theme Utility Classes */
.bg-theme-primary {
    background-color: var(--theme-primary) !important;
}

.bg-theme-secondary {
    background-color: var(--theme-secondary) !important;
}

.bg-theme-accent {
    background-color: var(--theme-accent-green) !important;
}

.text-theme-primary {
    color: var(--theme-primary) !important;
}

.text-theme-secondary {
    color: var(--theme-secondary) !important;
}

.text-theme-accent {
    color: var(--theme-accent-green) !important;
}

.border-theme-primary {
    border-color: var(--theme-primary) !important;
}

/* Gradient Backgrounds */
.bg-gradient-theme {
    background: var(--theme-gradient-primary);
}

.bg-gradient-theme-secondary {
    background: var(--theme-gradient-secondary);
}

.bg-gradient-theme-accent {
    background: var(--theme-gradient-accent);
}

/* Button Theme Classes */
.btn-theme-primary {
    background-color: var(--theme-primary);
    border-color: var(--theme-primary);
    color: var(--theme-white);
    transition: all var(--theme-transition-base);
}

.btn-theme-primary:hover {
    background-color: var(--theme-primary-dark);
    border-color: var(--theme-primary-dark);
    color: var(--theme-white);
    transform: translateY(-2px);
    box-shadow: var(--theme-shadow-md);
}

.btn-theme-secondary {
    background-color: var(--theme-secondary);
    border-color: var(--theme-secondary);
    color: var(--theme-white);
    transition: all var(--theme-transition-base);
}

.btn-theme-secondary:hover {
    background-color: var(--theme-secondary-dark);
    border-color: var(--theme-secondary-dark);
    color: var(--theme-white);
    transform: translateY(-2px);
    box-shadow: var(--theme-shadow-md);
}

.btn-theme-outline-primary {
    background-color: transparent;
    border-color: var(--theme-primary);
    color: var(--theme-primary);
    transition: all var(--theme-transition-base);
}

.btn-theme-outline-primary:hover {
    background-color: var(--theme-primary);
    border-color: var(--theme-primary);
    color: var(--theme-white);
}

/* Card Theme Classes */
.card-theme {
    background-color: var(--theme-card-bg);
    border: 1px solid var(--theme-border-light);
    border-radius: var(--theme-radius-lg);
    box-shadow: var(--theme-shadow);
    transition: all var(--theme-transition-base);
}

.card-theme:hover {
    box-shadow: var(--theme-shadow-lg);
    transform: translateY(-4px);
}

/* Navigation Theme Classes */
.navbar-theme {
    background-color: var(--theme-navbar-bg);
    box-shadow: var(--theme-shadow);
}

.navbar-brand-theme {
    color: var(--theme-primary) !important;
    font-weight: 700;
}

.nav-link-theme {
    color: var(--theme-text-primary) !important;
    font-weight: 500;
    transition: color var(--theme-transition-fast);
}

.nav-link-theme:hover,
.nav-link-theme.active {
    color: var(--theme-primary) !important;
}

/* Footer Theme Classes */
.footer-theme {
    background-color: var(--theme-footer-bg);
    color: var(--theme-text-light);
}

/* Section Theme Classes */
.section-theme {
    background-color: var(--theme-bg-secondary);
    padding: var(--theme-spacing-2xl) 0;
}

.section-theme-light {
    background-color: var(--theme-bg-light);
    padding: var(--theme-spacing-2xl) 0;
}

.section-theme-dark {
    background-color: var(--theme-bg-dark);
    color: var(--theme-text-light);
    padding: var(--theme-spacing-2xl) 0;
}

/* Badge Theme Classes */
.badge-theme-success {
    background-color: var(--theme-success);
    color: var(--theme-white);
}

.badge-theme-warning {
    background-color: var(--theme-warning);
    color: var(--theme-white);
}

.badge-theme-danger {
    background-color: var(--theme-danger);
    color: var(--theme-white);
}

.badge-theme-info {
    background-color: var(--theme-info);
    color: var(--theme-white);
}

/* Alert Theme Classes */
.alert-theme-success {
    background-color: rgba(64, 145, 108, 0.1);
    border-color: var(--theme-success);
    color: var(--theme-success);
}

.alert-theme-warning {
    background-color: rgba(243, 156, 18, 0.1);
    border-color: var(--theme-warning);
    color: var(--theme-warning);
}

.alert-theme-danger {
    background-color: rgba(231, 76, 60, 0.1);
    border-color: var(--theme-danger);
    color: var(--theme-danger);
}

.alert-theme-info {
    background-color: rgba(52, 152, 219, 0.1);
    border-color: var(--theme-info);
    color: var(--theme-info);
}
