/**
 * Theme Toggle Button Styles
 * Provides styling for the dark/light mode toggle button in slide presentations
 */

.theme-toggle-slide {
    position: fixed;
    top: 2rem;
    right: 5rem;
    background: rgba(0, 212, 255, 0.15);
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
    width: 2.5rem;
    height: 2.5rem;
    border-radius: var(--border-radius);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 101;
    font-weight: 600;
    transition: border-color var(--transition-fast), color var(--transition-fast), box-shadow var(--transition-fast), background var(--transition-fast);
    padding: 0;
}

.theme-toggle-slide:hover {
    background: rgba(0, 212, 255, 0.25);
    box-shadow: 0 0 20px rgba(0, 212, 255, 0.5);
}

.theme-toggle-slide:active {
    transform: scale(0.95);
}

/* Light Mode Styles */
body.light-mode .theme-toggle-slide {
    background: rgba(69, 129, 142, 0.15);
    border-color: var(--primary-color);
    color: var(--primary-color);
}

body.light-mode .theme-toggle-slide:hover {
    background: rgba(69, 129, 142, 0.25);
    box-shadow: 0 0 20px rgba(69, 129, 142, 0.5);
}

/* Icon Animations */
.theme-toggle-slide .theme-icon {
    position: absolute;
    width: 24px;
    height: 24px;
    transition: opacity var(--transition-fast), transform var(--transition-standard);
    stroke-linecap: round;
    stroke-linejoin: round;
}

/* Sun Icon - visible in dark mode */
.theme-toggle-slide .sun-icon {
    opacity: 1;
    transform: rotate(0deg) scale(1);
}

/* Moon Icon - hidden in dark mode */
.theme-toggle-slide .moon-icon {
    opacity: 0;
    transform: rotate(-180deg) scale(0);
}

/* Light Mode: show moon icon, hide sun icon */
body.light-mode .theme-toggle-slide .sun-icon {
    opacity: 0;
    transform: rotate(180deg) scale(0);
}

body.light-mode .theme-toggle-slide .moon-icon {
    opacity: 1;
    transform: rotate(0deg) scale(1);
}

/* Hide theme toggle in print mode */
@media print {
    .theme-toggle-slide {
        display: none !important;
    }
}

/* Mobile Responsive - adjust position for small screens */
@media (max-width: 768px) {
    .theme-toggle-slide {
        right: 1rem;
        width: 2.2rem;
        height: 2.2rem;
    }

    .theme-toggle-slide .theme-icon {
        width: 20px;
        height: 20px;
    }
}
