﻿/* ===== Theme Switcher ===== */

.theme-switcher {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 9999;
}

.theme-toggle-btn {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: var(--card-bg, rgba(255, 255, 255, 0.1));
    backdrop-filter: blur(10px);
    border: 2px solid rgba(139, 92, 246, 0.3);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.theme-toggle-btn:hover {
    transform: scale(1.1);
    border-color: var(--accent, #8b5cf6);
    box-shadow: 0 6px 20px rgba(139, 92, 246, 0.4);
}

.theme-icon img {
    width: 28px;
    height: 28px;
    object-fit: contain;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.2));
}

.theme-menu {
    position: absolute;
    top: 60px;
    right: 0;
    background: var(--card-bg, rgba(20, 20, 30, 0.95));
    backdrop-filter: blur(20px);
    border-radius: 16px;
    border: 2px solid rgba(139, 92, 246, 0.3);
    padding: 8px;
    min-width: 180px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
}

.theme-menu.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.theme-option {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.theme-option:hover {
    background: rgba(139, 92, 246, 0.1);
    transform: translateX(4px);
}

.theme-option.active {
    background: rgba(139, 92, 246, 0.2);
    border: 1px solid rgba(139, 92, 246, 0.4);
}

.theme-option-icon {
    font-size: 0;
    flex-shrink: 0;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.3));
    display: flex;
    align-items: center;
    justify-content: center;
}

.theme-option-icon img {
    width: 24px;
    height: 24px;
    object-fit: contain;
    display: block;
}

.theme-option-name {
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text, #e0e0e0);
}

/* Mobile Adjustments */
@media (max-width: 768px) {
    .theme-switcher {
        top: 15px;
        right: 15px;
    }

    .theme-toggle-btn {
        width: 45px;
        height: 45px;
        font-size: 1.3rem;
    }

    .theme-menu {
        min-width: 160px;
    }

    .theme-option {
        padding: 10px 14px;
    }
}
