/* Theme Switcher - Expand Downward */
.theme-switcher {
    position: relative;
    display: inline-flex;
    align-items: center;
    margin-left: 1.5rem;
}

.theme-switcher-toggle {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    border: none;
    background: var(--bg-deep, #040810);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.25s ease;
    position: relative;
    z-index: 0;
}
.theme-switcher-toggle::before {
    content: '';
    position: absolute;
    inset: -2px;
    border-radius: 50%;
    background: conic-gradient(from 0deg, #d4a574, #8a8078, #d4a574, #8a8078, #d4a574);
    z-index: -2;
    animation: theme-glow-spin 4s linear infinite;
}
.theme-switcher-toggle::after {
    content: '';
    position: absolute;
    inset: 1px;
    border-radius: 50%;
    background: var(--bg-deep, #040810);
    z-index: -1;
}
@keyframes theme-glow-spin {
    to { transform: rotate(360deg); }
}
.theme-switcher-toggle:hover {
    border-color: #c8b8a8;
    box-shadow: 0 0 12px rgba(212, 165, 116, 0.35);
}
.theme-switcher-toggle:hover::before {
    filter: blur(2px);
    inset: -3px;
}

.theme-switcher-toggle .icon-active {
    display: flex;
    align-items: center;
    justify-content: center;
    color: #d4a574;
}
.theme-switcher-toggle .icon-active svg {
    width: 20px;
    height: 20px;
}

.theme-switcher-dropdown {
    position: absolute;
    top: 100%;
    right: 0;
    margin-top: 0.5rem;
    background: rgba(10, 14, 26, 0.95);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 0.5rem;
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.2s ease;
    backdrop-filter: blur(10px);
    min-width: 160px;
    max-height: 250px;
    overflow: hidden;
}

.theme-switcher.expanded .theme-switcher-dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.theme-option {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.5rem 0.75rem;
    border-radius: var(--radius);
    cursor: pointer;
    transition: all 0.2s ease;
    border: 1px solid transparent;
    background: transparent;
    color: var(--text-secondary);
    font-size: 0.8rem;
    font-family: inherit;
    width: 100%;
    text-align: left;
    overflow: hidden;
    position: relative;
}

.theme-option:hover {
    background: rgba(212, 165, 116, 0.08);
    color: var(--text);
}

.theme-option.active {
    background: rgba(212, 165, 116, 0.12);
    border-color: var(--accent-dim);
    color: var(--accent);
}

.theme-option-icon {
    width: 18px;
    height: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #d4a574;
    flex-shrink: 0;
}
.theme-option-icon svg {
    width: 16px;
    height: 16px;
}
.theme-option:hover .theme-option-icon,
.theme-option.active .theme-option-icon {
    color: #e8c49a;
}

/* Responsive */
@media (max-width: 640px) {
    .theme-switcher {
        margin-left: 0.75rem;
    }
}
/* 1783267456 */
/* 1783268505 */
