/* ==========================================================================
   SOL ALT KLASİK, BELİRGİN & HAREKETLİ İLETİŞİM (WHATSAPP & HEMEN ARA)
   ========================================================================== */

.left-quick-contact.school-theme {
    position: fixed;
    left: 20px;
    bottom: 20px;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    gap: 14px;
    background: rgba(255, 255, 255, 0.88);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    padding: 10px;
    border-radius: 30px;
    /* Okul temalı dikiş kenarlığı */
    border: 2px dashed rgba(46, 104, 51, 0.35);
    outline: 4px solid rgba(255, 255, 255, 0.9);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.15);
}

/* Genel Buton Stili */
.left-btn {
    position: relative;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.15);
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275), box-shadow 0.3s ease;
}

.left-btn svg {
    width: 28px;
    height: 28px;
    fill: #ffffff; /* İkonlar her zaman net beyaz */
}

/* 🟢 1. KLASİK & HAREKETLİ WHATSAPP BUTONU */
.left-btn.whatsapp {
    background: #25D366; /* Resmi WhatsApp Yeşili */
    color: #ffffff;
    animation: waPulseShake 3s infinite ease-in-out;
}

/* WhatsApp Sallanma & Halka Yayılma Animasyonu */
@keyframes waPulseShake {
    0%, 100% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.6);
    }
    10% {
        transform: scale(1.1) rotate(-8deg);
    }
    18% {
        transform: scale(1.1) rotate(8deg);
    }
    26% {
        transform: scale(1.1) rotate(-5deg);
    }
    34% {
        transform: scale(1.1) rotate(0deg);
    }
    45% {
        transform: scale(1.05);
        box-shadow: 0 0 0 14px rgba(37, 211, 102, 0);
    }
}

/* 📞 2. HAREKETLİ HEMEN ARA BUTONU */
.left-btn.phone-call {
    background: linear-gradient(135deg, #2e6833 0%, #43a047 100%);
    color: #ffffff;
    animation: phoneRingShake 3.2s infinite ease-in-out 1.2s; /* WhatsApp ile eşzamanlı çakışmasın diye gecikmeli */
}

/* Telefon Çalma / Titreme Animasyonu */
@keyframes phoneRingShake {
    0%, 100% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(46, 104, 51, 0.6);
    }
    12% {
        transform: scale(1.1) rotate(12deg);
    }
    20% {
        transform: scale(1.1) rotate(-12deg);
    }
    28% {
        transform: scale(1.1) rotate(10deg);
    }
    36% {
        transform: scale(1.1) rotate(0deg);
    }
    48% {
        transform: scale(1.05);
        box-shadow: 0 0 0 14px rgba(46, 104, 51, 0);
    }
}

/* Hover Anında Buton Büyümesi */
.left-btn:hover {
    animation: none !important; /* Üzerine gelindiğinde animasyon durur */
    transform: scale(1.18) !important;
    z-index: 2;
}

.left-btn.whatsapp:hover {
    box-shadow: 0 8px 24px rgba(37, 211, 102, 0.5) !important;
}

.left-btn.phone-call:hover {
    box-shadow: 0 8px 24px rgba(46, 104, 51, 0.5) !important;
}

/* Sağa Açılan Bilgi Baloncuğu (Tooltip) */
.left-tooltip {
    position: absolute;
    left: 64px;
    top: 50%;
    transform: translateY(-50%) scale(0.85);
    background: #2e6833;
    color: #ffffff;
    padding: 7px 14px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 700;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: all 0.25s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.15);
}

/* Sol Ok Ucu */
.left-tooltip::after {
    content: '';
    position: absolute;
    top: 50%;
    left: -6px;
    transform: translateY(-50%);
    border-width: 6px 6px 6px 0;
    border-style: solid;
    border-color: transparent #2e6833 transparent transparent;
}

.left-btn:hover .left-tooltip {
    opacity: 1;
    transform: translateY(-50%) scale(1);
}

/* 📱 Mobil Uyumluluk */
@media (max-width: 768px) {
    .left-quick-contact.school-theme {
        left: 10px;
        bottom: 10px;
        padding: 8px;
        gap: 10px;
        border-radius: 24px;
    }

    .left-btn {
        width: 44px;
        height: 44px;
    }

    .left-btn svg {
        width: 24px;
        height: 24px;
    }

    .left-tooltip {
        display: none !important;
    }
}