/* Theme Switcher Styles */

/* Sun/Moon Toggle Switch */
.mode-switch {
    position: relative;
    display: inline-block;
    width: 56px;
    height: 28px;
    margin-left: var(--space-sm);
    cursor: pointer;
}

.mode-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.mode-slider {
    position: absolute;
    inset: 0;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: var(--radius-full);
    transition: all var(--transition-base);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 6px;
}

.mode-slider::after {
    content: '';
    position: absolute;
    left: 3px;
    top: 3px;
    width: 20px;
    height: 20px;
    background: var(--gradient-primary);
    border-radius: 50%;
    transition: transform var(--transition-base);
    z-index: 1;
}

/* Slide knob to the right when checked (light mode) */
.mode-switch input:checked + .mode-slider::after {
    transform: translateX(28px);
}

.mode-switch:hover .mode-slider {
    border-color: var(--color-accent-primary);
    background: rgba(255, 255, 255, 0.15);
}

/* Sun icon (left side) */
.mode-icon-sun {
    font-size: 0.7rem;
    color: #f59e0b;
    z-index: 0;
}

/* Moon icon (right side) */
.mode-icon-moon {
    font-size: 0.65rem;
    color: #b8bcc8;
    z-index: 0;
}

/* Orange Red Theme - Bold & Energetic */
[data-theme="orange-red"] {
    --color-accent-primary: #f59e0b;
    --color-accent-secondary: #ef4444;
    --color-accent-tertiary: #f97316;
    --gradient-primary: linear-gradient(135deg, #f59e0b 0%, #ef4444 50%, #f97316 100%);
    --font-primary: 'Open Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --font-heading: 'Raleway', 'Open Sans', sans-serif;
}

@media (max-width: 768px) {
    .mode-switch {
        width: 50px;
        height: 26px;
        margin-left: var(--space-xs);
    }

    .mode-slider::after {
        width: 18px;
        height: 18px;
    }

    .mode-switch input:checked + .mode-slider::after {
        transform: translateX(24px);
    }
}
