/* TEMA TOGGLE BUTONU ANIMASYONLARI */

/* Temel animasyonlar */
@keyframes spin {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

@keyframes ping {
    75%, 100% {
        transform: scale(2);
        opacity: 0;
    }
}

@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.5;
    }
}

@keyframes bounce {
    0%, 100% {
        transform: translateY(-25%);
        animation-timing-function: cubic-bezier(0.8, 0, 1, 1);
    }
    50% {
        transform: translateY(0);
        animation-timing-function: cubic-bezier(0, 0, 0.2, 1);
    }
}

/* Animasyon sınıfları */
.animate-spin {
    animation: spin 1s linear infinite;
}

.animate-ping {
    animation: ping 1s cubic-bezier(0, 0, 0.2, 1) infinite;
}

.animate-pulse {
    animation: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

.animate-bounce {
    animation: bounce 1s infinite;
}

/* Slider dot geçiş efektleri */
.slider-dot {
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    will-change: transform, box-shadow;
}

/* İkon geçiş efektleri */
.sun-icon,
.moon-icon {
    transition: opacity 0.3s ease-in-out, transform 0.3s ease-in-out;
    will-change: opacity, transform;
}

/* Tema toggle butonu */
#theme-toggle {
    transition: transform 0.2s ease;
    cursor: pointer;
    position: relative;
}

#theme-toggle:hover {
    transform: scale(1.05);
}

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

/* Pointer events - tıklanabilirlik */
.pointer-events-none {
    pointer-events: none;
}

/* Responsive optimizasyonlar */
@media (max-width: 768px) {
    #theme-toggle {
        width: 72px;
        height: 36px;
    }
    
    .slider-dot {
        width: 28px !important;
        height: 28px !important;
    }
}

/* Dark mode geçişleri */
.dark #theme-toggle .slider-dot {
    background: linear-gradient(to bottom right, #1a1a2e, #6b21a8, #1a1a2e) !important;
    border-color: rgba(139, 92, 246, 0.5) !important;
}

/* Performans optimizasyonu */
#theme-toggle,
#theme-toggle * {
    backface-visibility: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}
