/* ==========================================================================
   GENEL FOOTER MOBİL GÖRÜNÜM AYARLARI
   ========================================================================== */
@media (max-width: 992px) {
    html, body { 
        max-width: 100vw; 
        overflow-x: hidden; 
    }
    body { 
        padding-bottom: 0 !important; 
    }
    footer { 
        padding-bottom: 110px !important; 
        width: 100%; 
        max-width: 100vw; 
        box-sizing: border-box; 
        overflow-x: hidden; 
    }
}

/* ==========================================================================
   MOBİL ALT NAVBAR (MAVİDEN KIRMIZIYA ZORLAMA KODLARI)
   ========================================================================== */
.mobile-bottom-nav .menu-item-mobile.active i,
.mobile-bottom-nav .menu-item-mobile.active span,
.mobile-bottom-nav .menu-item-mobile:hover i,
.mobile-bottom-nav .menu-item-mobile:hover span {
    color: #a6030c !important;
}

/* Mobil Alt Navbar Ortadaki Sepet/Arama Büyük Butonu */
.mobile-bottom-nav .search-button-mobile {
    background: linear-gradient(to bottom, #a6030c, #7a0208) !important;
    box-shadow: 0 4px 15px rgba(166, 3, 12, 0.4) !important;
}

/* Olası Mavi Rozetleri (Badge) Kırmızı Yapma */
.mobile-cart-badge {
    background-color: #dc2626 !important; /* Kırmızı uyarı rengi */
    color: #ffffff !important;
}

/* ==========================================================================
   ÖĞRENCİ PANELİ DIŞI (PUBLIC) MOBİL YÖNLENDİRME MENÜSÜ
   ========================================================================== */
.student-mobile-nav-public { 
    display: none !important; 
    position: fixed; 
    bottom: 0; 
    left: 0; 
    right: 0; 
    width: 100% !important; 
    background: #fff; 
    border-top: 1px solid #eee; 
    z-index: 9999; 
    justify-content: space-around; 
    align-items: center; 
    padding: 10px 0; 
    padding-bottom: calc(10px + env(safe-area-inset-bottom)); 
    box-shadow: 0 -2px 10px rgba(0,0,0,0.05); 
    box-sizing: border-box; 
    margin: 0; 
}
.student-mobile-nav-public a { 
    display: flex; 
    flex-direction: column; 
    align-items: center; 
    color: #999; 
    text-decoration: none; 
    font-size: 11px; 
    gap: 4px; 
    transition: color 0.3s; 
}
.student-mobile-nav-public a:hover { 
    color: #a6030c; 
}
.student-mobile-nav-public a i { 
    font-size: 20px; 
}

@media (max-width: 992px) { 
    .student-mobile-nav-public { 
        display: flex !important; 
    } 
    body { 
        padding-bottom: 80px !important; 
    } 
}

/* ==========================================================================
   MÜŞTERİ HİZMETLERİ / WHATSAPP DESTEK MODALI
   ========================================================================== */
:root {
    --mh-btn-color-glow-start: rgba(37, 211, 102, 0.7); /* Varsayılan WP Yeşili Glow */
    --mh-btn-color-glow-end: rgba(37, 211, 102, 0);
}

@keyframes supportGlow {
    0% { box-shadow: -0px 0 0 0 var(--mh-btn-color-glow-start); }
    70% { box-shadow: -0px 0 0 15px var(--mh-btn-color-glow-end); }
    100% { box-shadow: -0px 0 0 0 var(--mh-btn-color-glow-end); }
}

.support-modal-overlay {
    perspective: 1000px;
}

.support-modal-content {
    transform: rotateY(-90deg);
    opacity: 0;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.support-modal-overlay.active {
    opacity: 1; 
    pointer-events: auto;
}

.support-modal-overlay.active .support-modal-content {
    transform: rotateY(0deg);
    opacity: 1;
}

/* ==========================================================================
   MOBIL FOOTER YONLENDIRME BUTONLARI
   Masaustu footer yapisini etkilememek icin yalnizca lg altinda calisir.
   ========================================================================== */
@media (max-width: 1023px) {
    #site-genel-footer .mobile-footer-small-actions {
        display: grid !important;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 10px !important;
        align-items: stretch !important;
    }

    #site-genel-footer .mobile-footer-main-actions {
        display: grid !important;
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 8px !important;
        align-items: stretch !important;
    }

    #site-genel-footer .mobile-footer-small-btn,
    #site-genel-footer .mobile-footer-action-btn {
        width: 100% !important;
        min-width: 0 !important;
        box-sizing: border-box;
        text-align: center;
        white-space: normal !important;
        overflow-wrap: anywhere;
    }

    #site-genel-footer .mobile-footer-small-btn {
        min-height: 46px;
        padding: 10px 8px !important;
        gap: 7px !important;
        line-height: 1.15;
        font-size: 11px !important;
    }

    #site-genel-footer .mobile-footer-small-btn i {
        font-size: 14px;
        line-height: 1;
        flex: 0 0 auto;
    }

    #site-genel-footer .mobile-footer-action-btn {
        min-height: 72px;
        padding: 10px 5px !important;
        gap: 6px !important;
        border-radius: 14px !important;
    }

    #site-genel-footer .mobile-footer-action-btn i {
        margin: 0 !important;
        font-size: 20px !important;
        line-height: 1;
    }

    #site-genel-footer .mobile-footer-action-btn span {
        display: block;
        margin: 0 !important;
        max-width: 100%;
        font-size: 10px !important;
        line-height: 1.2;
        letter-spacing: 0;
        text-align: center;
    }
}

@media (max-width: 374px) {
    #site-genel-footer .mobile-footer-small-actions {
        gap: 8px !important;
    }

    #site-genel-footer .mobile-footer-main-actions {
        gap: 6px !important;
    }

    #site-genel-footer .mobile-footer-small-btn {
        font-size: 10px !important;
    }

    #site-genel-footer .mobile-footer-action-btn span {
        font-size: 9px !important;
    }

    #site-genel-footer .mobile-footer-action-btn {
        min-height: 68px;
        padding-left: 4px !important;
        padding-right: 4px !important;
    }

    #site-genel-footer .mobile-footer-action-btn i {
        font-size: 18px !important;
    }
}
