/* ================================================
   SIMPLE ICON-ONLY DARK MODE TOGGLE
   Clean, Minimal Design
   ================================================ */

.theme-toggle-wrapper {
    position: relative;
    display: inline-flex;
    align-items: center;
    padding: 0 10px;
}

.theme-toggle {
    position: relative;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    border-radius: 50%;
}

.theme-toggle:hover {
    background: rgba(0, 175, 221, 0.1);
    transform: scale(1.1);
}

/* Sun Icon (Light Mode) - Show by default */
.theme-toggle .icon-sun {
    font-size: 22px;
    color: #f59e0b;
    transition: all 0.3s ease;
    display: block;
}

/* Moon Icon (Dark Mode) - Hide by default */
.theme-toggle .icon-moon {
    font-size: 22px;
    color: #60a5fa;
    transition: all 0.3s ease;
    display: none;
}

/* Dark Mode Active State */
[data-theme="dark"] .theme-toggle:hover {
    background: rgba(0, 212, 255, 0.15);
}

[data-theme="dark"] .theme-toggle .icon-sun {
    display: none;
}

[data-theme="dark"] .theme-toggle .icon-moon {
    display: block;
    color: #00d4ff;
}

/* Mobile Responsive */
@media (max-width: 991px) {
    .theme-toggle-wrapper {
        justify-content: center;
        padding: 10px 0;
    }
}

/* Animation for theme switch */
@keyframes iconRotate {
    0% {
        transform: rotate(0deg) scale(1);
    }
    50% {
        transform: rotate(180deg) scale(1.2);
    }
    100% {
        transform: rotate(360deg) scale(1);
    }
}

.theme-toggle.switching .icon-sun,
.theme-toggle.switching .icon-moon {
    animation: iconRotate 0.5s ease;
}

/* Accessibility - Focus State */
.theme-toggle:focus-visible {
    outline: 2px solid #00d4ff;
    outline-offset: 4px;
}

/* Smooth page transition effect */
body {
    transition: background-color 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Prevent flash on load */
.theme-transition-disable * {
    transition: none !important;
}
