/**
 * Egem Veteriner Kliniği
 * Animasyonlar
 */

/* =====================================================
   KEYFRAME ANİMASYONLARI
   ===================================================== */

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInLeft {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes fadeInRight {
    from {
        opacity: 0;
        transform: translateX(30px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes scaleIn {
    from {
        opacity: 0;
        transform: scale(0.9);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes pulse {

    0%,
    100% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.05);
    }
}

@keyframes float {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-10px);
    }
}

@keyframes shimmer {
    0% {
        background-position: -200% 0;
    }

    100% {
        background-position: 200% 0;
    }
}

@keyframes spin {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

/* =====================================================
   ANİMASYON SINIFLARI
   ===================================================== */

.animasyon-fade {
    animation: fadeIn 0.6s ease forwards;
}

.animasyon-yukari {
    animation: fadeInUp 0.6s ease forwards;
}

.animasyon-asagi {
    animation: fadeInDown 0.6s ease forwards;
}

.animasyon-sol {
    animation: fadeInLeft 0.6s ease forwards;
}

.animasyon-sag {
    animation: fadeInRight 0.6s ease forwards;
}

.animasyon-buyume {
    animation: scaleIn 0.5s ease forwards;
}

/* Gecikme sınıfları */
.gecikme-1 {
    animation-delay: 0.1s;
}

.gecikme-2 {
    animation-delay: 0.2s;
}

.gecikme-3 {
    animation-delay: 0.3s;
}

.gecikme-4 {
    animation-delay: 0.4s;
}

.gecikme-5 {
    animation-delay: 0.5s;
}

/* =====================================================
   HOVER & FOCUSEFEKTLERİ
   ===================================================== */

/* Buton hover pulse */
.btn:active {
    transform: scale(0.97);
}

/* Kart hover lift */
.hover-yukari {
    transition: var(--gecis);
}

.hover-yukari:hover {
    transform: translateY(-8px);
    box-shadow: var(--golge-buyuk);
}

/* Görsel hover zoom */
.hover-zoom {
    overflow: hidden;
}

.hover-zoom img {
    transition: transform 0.4s ease;
}

.hover-zoom:hover img {
    transform: scale(1.08);
}

/* Link underline animasyonu */
.link-animasyon {
    position: relative;
}

.link-animasyon::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--renk-ana);
    transition: width 0.3s ease;
}

.link-animasyon:hover::after {
    width: 100%;
}

/* =====================================================
   SCROLL ANİMASYONLARI
   ===================================================== */

.gorunur-animasyon {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.gorunur-animasyon.gorunur {
    opacity: 1;
    transform: translateY(0);
}

/* Staggered animasyonlar için */
.gorunur-animasyon:nth-child(1) {
    transition-delay: 0.1s;
}

.gorunur-animasyon:nth-child(2) {
    transition-delay: 0.2s;
}

.gorunur-animasyon:nth-child(3) {
    transition-delay: 0.3s;
}

.gorunur-animasyon:nth-child(4) {
    transition-delay: 0.4s;
}

.gorunur-animasyon:nth-child(5) {
    transition-delay: 0.5s;
}

.gorunur-animasyon:nth-child(6) {
    transition-delay: 0.6s;
}

/* =====================================================
   YÜKLENİYOR ANİMASYONLARI
   ===================================================== */

.yukleniyor {
    position: relative;
    pointer-events: none;
}

.yukleniyor::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 20px;
    height: 20px;
    margin: -10px 0 0 -10px;
    border: 2px solid transparent;
    border-top-color: currentColor;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

/* Skeleton loading */
.iskelet {
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
    border-radius: var(--radius-kucuk);
}

/* =====================================================
   ÖZEL EFEKTLER
   ===================================================== */

/* Parlama efekti */
.parlama {
    position: relative;
    overflow: hidden;
}

.parlama::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.5s ease;
}

.parlama:hover::before {
    left: 100%;
}

/* Floating icon */
.yuzen {
    animation: float 3s ease-in-out infinite;
}

/* Nabız efekti */
.nabiz {
    animation: pulse 2s ease-in-out infinite;
}