/* ========================================
   Futia Theme Toggle Button — Dark/Light
   ======================================== */

/* Desktop toggle button */
.futia-theme-toggle {
    height: 36px;
    border-radius: 18px;
    border: 1px solid rgba(255, 255, 255, 0.15);
    background: transparent;
    color: rgba(255, 255, 255, 0.7);
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    font-size: 16px;
    transition: all 0.3s ease;
    padding: 0 12px;
    line-height: 1;
    flex-shrink: 0;
}

/* Desktop label */
.futia-theme-label {
    font-size: 12px;
    font-family: 'Sora', sans-serif;
    font-weight: 500;
    white-space: nowrap;
}

.futia-theme-toggle:hover {
    border-color: #8b5cf6;
    color: #8b5cf6;
    background: rgba(139, 92, 246, 0.08);
}

.futia-theme-toggle:focus-visible {
    outline: 2px solid #8b5cf6;
    outline-offset: 2px;
}

/* Mobile menu toggle — wider button style */
.mobile-menu-buttons .futia-theme-toggle-mobile {
    width: 100%;
    height: auto;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(255, 255, 255, 0.04);
    color: rgba(255, 255, 255, 0.7);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-size: 14px;
    font-family: inherit;
    padding: 12px 20px;
    transition: all 0.3s ease;
}

.mobile-menu-buttons .futia-theme-toggle-mobile:hover {
    border-color: #8b5cf6;
    color: #8b5cf6;
    background: rgba(139, 92, 246, 0.08);
}

/* ── Light theme overrides ─────────────── */
body.futia-light .futia-theme-toggle {
    border-color: rgba(0, 0, 0, 0.15);
    color: rgba(0, 0, 0, 0.55);
}

body.futia-light .futia-theme-toggle:hover {
    border-color: #8b5cf6;
    color: #8b5cf6;
    background: rgba(139, 92, 246, 0.06);
}

body.futia-light .mobile-menu-buttons .futia-theme-toggle-mobile {
    border-color: rgba(0, 0, 0, 0.12);
    background: rgba(0, 0, 0, 0.03);
    color: rgba(0, 0, 0, 0.6);
}

body.futia-light .mobile-menu-buttons .futia-theme-toggle-mobile:hover {
    border-color: #8b5cf6;
    color: #8b5cf6;
    background: rgba(139, 92, 246, 0.06);
}

/* ── Hide desktop label on mobile ────────── */
@media (max-width: 768px) {
    .futia-theme-label {
        display: none;
    }
    /* Revert to circle on mobile header */
    .header .futia-theme-toggle:not(.futia-theme-toggle-mobile) {
        width: 36px;
        padding: 0;
        border-radius: 50%;
        gap: 0;
    }
}
