/* Dark Mode Toggle Button */
.theme-toggle {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 56px;
    height: 56px;
    border-radius: var(--radius-full);
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border: none;
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
    box-shadow: var(--shadow-lg);
    transition: var(--transition-base);
    z-index: var(--z-fixed);
    display: flex;
    align-items: center;
    justify-content: center;
}

.theme-toggle:hover,
.theme-toggle:focus {
    transform: scale(1.1) rotate(15deg);
    box-shadow: var(--shadow-xl);
}

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

.theme-toggle i {
    transition: var(--transition-base);
}

/* Dark mode specific styling */
[data-theme="dark"] .theme-toggle {
    background: linear-gradient(135deg, #f39c12, #e67e22);
}

/* Animation when toggling */
@keyframes rotate {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

.theme-toggle.animating i {
    animation: rotate 0.5s ease-in-out;
}

/* Mobile adjustments */
@media (max-width: 768px) {
    .theme-toggle {
        width: 50px;
        height: 50px;
        bottom: 1.5rem;
        right: 1.5rem;
        font-size: 1.25rem;
    }
}

/* Accessibility */
.theme-toggle:focus {
    outline: 3px solid var(--accent-color);
    outline-offset: 3px;
}

/* Smooth theme transition */
* {
    transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
}

/* Prevent transition on page load */
.no-transition * {
    transition: none !important;
}
