/* ============================================
   THEME SYSTEM - 5 Color Themes
   ============================================ */

/* Default Theme: Blue (Current) */
:root {
    --theme-primary: #002855;
    --theme-primary-light: #004aad;
    --theme-primary-lighter: #0066cc;
    --theme-accent: #ffc107;
    --theme-accent-secondary: #ff9800;
    --theme-bg-particle-1: rgba(0, 74, 173, 0.08);
    --theme-bg-particle-2: rgba(255, 193, 7, 0.1);
    --theme-bg-particle-3: rgba(0, 168, 255, 0.05);
}

/* Theme 1: Green */
[data-theme="green"] {
    --theme-primary: #0d4f0d;
    --theme-primary-light: #1b8e1b;
    --theme-primary-lighter: #2db82d;
    --theme-accent: #4caf50;
    --theme-accent-secondary: #66bb6a;
    --theme-bg-particle-1: rgba(27, 142, 27, 0.1);
    --theme-bg-particle-2: rgba(76, 175, 80, 0.12);
    --theme-bg-particle-3: rgba(102, 187, 106, 0.08);
}

/* Theme 2: Yellow */
[data-theme="yellow"] {
    --theme-primary: #f57c00;
    --theme-primary-light: #f9a825;
    --theme-primary-lighter: #fbc02d;
    --theme-accent: #ffc107;
    --theme-accent-secondary: #ffd54f;
    --theme-bg-particle-1: rgba(245, 124, 0, 0.1);
    --theme-bg-particle-2: rgba(255, 193, 7, 0.12);
    --theme-bg-particle-3: rgba(255, 213, 79, 0.08);
}

/* Theme 3: Orange */
[data-theme="orange"] {
    --theme-primary: #e65100;
    --theme-primary-light: #ff6f00;
    --theme-primary-lighter: #ff8f00;
    --theme-accent: #ff6b35;
    --theme-accent-secondary: #ff9800;
    --theme-bg-particle-1: rgba(255, 111, 0, 0.08);
    --theme-bg-particle-2: rgba(255, 107, 53, 0.1);
    --theme-bg-particle-3: rgba(255, 152, 0, 0.05);
}

/* Theme 4: Purple */
[data-theme="purple"] {
    --theme-primary: #4a148c;
    --theme-primary-light: #6a1b9a;
    --theme-primary-lighter: #8e24aa;
    --theme-accent: #ab47bc;
    --theme-accent-secondary: #ba68c8;
    --theme-bg-particle-1: rgba(106, 27, 154, 0.08);
    --theme-bg-particle-2: rgba(171, 71, 188, 0.1);
    --theme-bg-particle-3: rgba(186, 104, 200, 0.05);
}

/* Apply theme colors to body background - Override style.css */
body {
    background: 
        radial-gradient(circle at 20% 30%, var(--theme-bg-particle-1) 0%, transparent 50%),
        radial-gradient(circle at 80% 70%, var(--theme-bg-particle-2) 0%, transparent 50%),
        radial-gradient(circle at 50% 50%, var(--theme-bg-particle-3) 0%, transparent 60%),
        linear-gradient(135deg, #ffffff 0%, #f0f7ff 25%, #fff9e6 50%, #f0f7ff 75%, #ffffff 100%) !important;
}

/* Update headings - Force override */
h1, h2, h3, h4, h5 {
    background: linear-gradient(135deg, var(--theme-primary) 0%, var(--theme-primary-light) 50%, var(--theme-primary-lighter) 100%) !important;
    -webkit-background-clip: text !important;
    -webkit-text-fill-color: transparent !important;
    background-clip: text !important;
}

h2 {
    background: linear-gradient(135deg, var(--theme-primary) 0%, var(--theme-primary-light) 100%) !important;
}

/* Update navbar - Override all navbar styles */
.navbar,
.header-main {
    background: linear-gradient(135deg, var(--theme-primary) 0%, var(--theme-primary-light) 50%, var(--theme-primary-lighter) 100%) !important;
    border-bottom: 3px solid var(--theme-accent) !important;
}

.header-top {
    background: linear-gradient(135deg, var(--theme-primary), var(--theme-primary-light)) !important;
}

.navbar .nav-link::after {
    background: linear-gradient(90deg, var(--theme-accent), var(--theme-accent-secondary));
}

.navbar .nav-link:hover {
    color: var(--theme-accent) !important;
}

/* Update buttons - Force override */
.btn-primary {
    background: linear-gradient(135deg, var(--theme-primary) 0%, var(--theme-primary-light) 100%) !important;
    border: none !important;
}

.btn-primary:hover {
    background: linear-gradient(135deg, var(--theme-primary) 0%, var(--theme-primary-lighter) 100%) !important;
}

.btn-outline-primary {
    border-color: var(--theme-primary) !important;
    color: var(--theme-primary) !important;
}

.btn-outline-primary:hover {
    background: var(--theme-primary) !important;
    border-color: var(--theme-primary) !important;
    color: white !important;
}

/* Update background particles */
body::before {
    background-image: 
        radial-gradient(2px 2px at 20% 30%, var(--theme-bg-particle-1), transparent),
        radial-gradient(2px 2px at 60% 70%, var(--theme-bg-particle-2), transparent),
        radial-gradient(1px 1px at 50% 50%, var(--theme-bg-particle-3), transparent),
        radial-gradient(1px 1px at 80% 20%, var(--theme-bg-particle-1), transparent),
        radial-gradient(2px 2px at 30% 80%, var(--theme-bg-particle-2), transparent);
}

/* Theme Switcher Bar */
.theme-switcher-bar {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 2px solid rgba(0, 0, 0, 0.1);
    padding: 10px 0;
    text-align: center;
    position: sticky;
    top: 0;
    z-index: 1030;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.theme-switcher-bar .container {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    flex-wrap: wrap;
}

.theme-switcher-label {
    font-weight: 600;
    color: #333;
    margin-right: 5px;
    font-size: 14px;
}

.theme-btn {
    padding: 8px 16px;
    border: 2px solid #ddd;
    border-radius: 20px;
    background: white;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 600;
    font-size: 13px;
    min-width: 100px;
    position: relative;
    overflow: hidden;
}

.theme-btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.theme-btn:active::before {
    width: 300px;
    height: 300px;
}

.theme-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.theme-btn.active {
    border-width: 3px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    font-weight: 700;
}

/* Individual theme button colors */
.theme-btn[data-theme="blue"] {
    border-color: #002855;
    color: #002855;
}

.theme-btn[data-theme="blue"].active {
    background: linear-gradient(135deg, #002855, #004aad);
    color: white;
    border-color: #002855;
}

.theme-btn[data-theme="green"] {
    border-color: #2e7d32;
    color: #2e7d32;
}

.theme-btn[data-theme="green"].active {
    background: linear-gradient(135deg, #0d4f0d, #1b8e1b);
    color: white;
    border-color: #0d4f0d;
}

.theme-btn[data-theme="yellow"] {
    border-color: #f9a825;
    color: #f57f17;
}

.theme-btn[data-theme="yellow"].active {
    background: linear-gradient(135deg, #f57c00, #f9a825);
    color: white;
    border-color: #f57c00;
}

.theme-btn[data-theme="orange"] {
    border-color: #ff6f00;
    color: #e65100;
}

.theme-btn[data-theme="orange"].active {
    background: linear-gradient(135deg, #e65100, #ff6f00);
    color: white;
    border-color: #e65100;
}

.theme-btn[data-theme="purple"] {
    border-color: #6a1b9a;
    color: #4a148c;
}

.theme-btn[data-theme="purple"].active {
    background: linear-gradient(135deg, #4a148c, #6a1b9a);
    color: white;
    border-color: #4a148c;
}

@media (max-width: 768px) {
    .theme-switcher-bar .container {
        gap: 5px;
    }
    
    .theme-btn {
        padding: 6px 12px;
        font-size: 12px;
        min-width: 80px;
    }
    
    .theme-switcher-label {
        font-size: 12px;
        width: 100%;
        margin-bottom: 5px;
    }
}

