/* Theme Definitions */

/* Dark Mode (Ultra Deep) */
[data-theme="dark"] {
    --bg-color: #000000;
    --text-color: #ffffff;
    --accent-color: #444444;
    --accent-secondary: #222222;
    --accent-tertiary: #111111;
}

/* Light Mode (Clean Editorial) */
[data-theme="light"] {
    --bg-color: #f5f5f7;
    --text-color: #000000;
    --accent-color: #000000;
    --accent-secondary: #666666;
    --accent-tertiary: #999999;
}

/* Colorful Mode (Cyberpunk Flux) */
[data-theme="colorful"] {
    --bg-color: #0a0e14;
    --text-color: #f0f0f0;
    --accent-color: #00f2ff;
    /* Cyan */
    --accent-secondary: #ff00ff;
    /* Magenta */
    --accent-tertiary: #39ff14;
    /* Lime */
}

/* Theme Switcher UI */
.theme-switcher-bar {
    position: fixed;
    right: 20px;
    top: 250px;
    /* Above or below our other icons */
    z-index: 10001;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.theme-btn {
    width: 60px;
    height: 60px;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 15px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: var(--accent-color);
    cursor: pointer;
    transition: 0.3s;
    font-family: 'Syncopate', sans-serif;
}

.theme-btn i {
    font-size: 1.2rem;
}

.theme-btn span {
    font-size: 0.5rem;
    margin-top: 5px;
    font-weight: bold;
}

.theme-btn:hover {
    transform: translateX(-5px) scale(1.1);
    border-color: var(--accent-color);
    background: rgba(255, 255, 255, 0.1);
}

.theme-options {
    position: absolute;
    right: 70px;
    top: 0;
    display: flex;
    gap: 10px;
    opacity: 0;
    pointer-events: none;
    transition: 0.3s;
}

.theme-switcher-bar:hover .theme-options {
    opacity: 1;
    pointer-events: auto;
    right: 80px;
}

.option-btn {
    width: 45px;
    height: 45px;
    border-radius: 10px;
    border: 2px solid rgba(255, 255, 255, 0.2);
    cursor: pointer;
    transition: 0.3s;
}

.option-btn:hover {
    transform: scale(1.2);
}

.option-normal {
    background: linear-gradient(135deg, #050505, #d4af37);
}

.option-dark {
    background: #000;
}

.option-light {
    background: #fff;
}

.option-colorful {
    background: linear-gradient(135deg, #00f2ff, #ff00ff);
}

/* Global Override Fixes for Themes */
[data-theme="light"] .hero-bg,
[data-theme="light"] .market-hub-container,
[data-theme="light"] .ai-hub-overlay {
    background: #fff;
    color: #000;
}

[data-theme="light"] .section-title {
    background: linear-gradient(135deg, #000, #333);
    -webkit-background-clip: text;
    background-clip: text;
}

[data-theme="light"] .project-card,
[data-theme="light"] .quiz-card,
[data-theme="light"] .profile-card {
    background: #f0f0f0;
    border-color: #ddd;
    color: #000;
}