/* Responsive Düzeltmeleri */

/* 1. Referanslar Bölümü - Küçük Ekranlar İçin İyileştirmeler */
@media screen and (max-width: 576px) {
    .fckaiy {
        grid-template-columns: 1fr !important;
        gap: 16px !important;
        margin: 16px auto !important;
    }
    
    .hBiNPi {
        padding: 12px !important;
        aspect-ratio: auto !important;
        min-height: 100px !important;
    }
    
    .iKLeGq {
        min-height: 80px !important;
        min-width: 80px !important;
    }
    
    .iKLeGq img,
    .iKLeGq picture img {
        max-width: 100% !important;
        max-height: 60px !important;
        object-fit: contain !important;
    }
}

/* Tablet görünümü için iyileştirme */
@media screen and (min-width: 577px) and (max-width: 991px) {
    .fckaiy {
        grid-template-columns: repeat(3, 1fr) !important;
        gap: 20px !important;
    }
}

/* Orta ekranlar için iyileştirme */
@media screen and (min-width: 992px) and (max-width: 1247px) {
    .fckaiy {
        grid-template-columns: repeat(4, 1fr) !important;
        gap: 24px !important;
    }
}

/* 2. Slider - Mobil Görünüm İyileştirmeleri */
@media screen and (max-width: 768px) {
    .vh-100 {
        min-height: 60vh !important;
        height: auto !important;
    }
    
    .display-3 {
        font-size: 2rem !important;
    }
    
    section.py-4.py-md-8 {
        padding-top: 2rem !important;
        padding-bottom: 2rem !important;
    }
}

/* Çok küçük ekranlar için slider */
@media screen and (max-width: 576px) {
    .vh-100 {
        min-height: 50vh !important;
    }
    
    .display-3 {
        font-size: 1.5rem !important;
    }
    
    h1.font-lora {
        font-size: 1.25rem !important;
    }
    
    .btn-slide {
        padding: 0.5rem 1rem !important;
        font-size: 0.875rem !important;
    }
}

/* 3. Navbar - Mobil Görünüm İyileştirmeleri */
@media screen and (max-width: 1199px) {
    .navbar-brand-img {
        width: 150px !important;
        max-width: 150px !important;
    }
    
    .navbar-nav {
        padding-top: 1rem;
    }
    
    .navbar-nav .nav-link {
        padding: 0.75rem 1rem !important;
    }
}

/* 4. Hizmetler Bölümü - Mobil İyileştirmeleri */
@media screen and (max-width: 768px) {
    .media {
        flex-direction: column !important;
        text-align: center !important;
    }
    
    .media .me-6 {
        margin-right: 0 !important;
        margin-bottom: 1rem !important;
    }
    
    .col-md-6.mb-9 {
        margin-bottom: 2rem !important;
    }
    
    .pe-xl-6 {
        padding-right: 0 !important;
    }
}

/* 5. Footer - Mobil İyileştirmeleri */
@media screen and (max-width: 768px) {
    footer .d-flex {
        flex-direction: column !important;
        align-items: center !important;
    }
    
    footer .navbar-nav {
        flex-direction: column !important;
        align-items: center !important;
    }
    
    footer .nav-link {
        padding: 0.5rem 0 !important;
        text-align: center !important;
    }
    
    footer .text-center {
        text-align: center !important;
    }
}

/* 6. Hakkımızda Bölümü - Mobil İyileştirmeleri */
@media screen and (max-width: 768px) {
    .order-1 {
        order: 1 !important;
    }
    
    .order-2 {
        order: 2 !important;
    }
    
    .col-md-5.order-1 {
        margin-bottom: 2rem !important;
    }
    
    .col-md-6.order-2 {
        text-align: center !important;
    }
}

/* 7. Container ve Genel Düzenlemeler */
@media screen and (max-width: 576px) {
    .container {
        padding-left: 1rem !important;
        padding-right: 1rem !important;
    }
    
    .container-fluid {
        padding-left: 1rem !important;
        padding-right: 1rem !important;
    }
    
    .py-4, .py-md-8 {
        padding-top: 1.5rem !important;
        padding-bottom: 1.5rem !important;
    }
    
    .py-5, .py-md-11 {
        padding-top: 2rem !important;
        padding-bottom: 2rem !important;
    }
    
    .mb-6, .mb-md-8 {
        margin-bottom: 2rem !important;
    }
}

/* 8. Modal İyileştirmeleri */
@media screen and (max-width: 768px) {
    /* Sidebar modal'ı mobilde tam ekran yap */
    .modal.modal-sidebar {
        padding: 0 !important;
    }
    
    .modal.modal-sidebar .modal-dialog {
        margin: 0 !important;
        max-width: 100% !important;
        width: 100% !important;
        height: 100% !important;
        min-height: 100vh !important;
    }
    
    .modal.modal-sidebar .modal-content {
        border-radius: 0 !important;
        height: 100% !important;
        min-height: 100vh !important;
        display: flex !important;
        flex-direction: column !important;
    }
    
    .modal.modal-sidebar .modal-body {
        flex: 1 !important;
        overflow-y: auto !important;
        padding: 1rem !important;
    }
    
    .modal.modal-sidebar .modal-header {
        padding: 1rem !important;
        border-bottom: 1px solid #e0e0e0 !important;
    }
    
    .modal.modal-sidebar .modal-title {
        font-size: 1.25rem !important;
    }
    
    .modal.modal-sidebar iframe {
        width: 100% !important;
        height: 250px !important;
    }
    
    /* Genel modal düzenlemeleri */
    .modal-dialog {
        margin: 0.5rem !important;
    }
    
    .modal-content {
        border-radius: 0.5rem !important;
    }
    
    .modal-header img {
        max-height: 40px !important;
    }
}

/* 9. WhatsApp Butonu - Mobil İyileştirmeleri */
@media screen and (max-width: 1199px) {
    .btn-outline-dark.btn-xs {
        font-size: 0.75rem !important;
        padding: 0.375rem 0.75rem !important;
    }
    
    .nav-link .fab.fa-whatsapp {
        font-size: 1.5rem !important;
    }
}

/* 10. Genel Tipografi İyileştirmeleri */
@media screen and (max-width: 576px) {
    h1 {
        font-size: 1.75rem !important;
    }
    
    h2 {
        font-size: 1.5rem !important;
    }
    
    h3 {
        font-size: 1.25rem !important;
    }
    
    h5 {
        font-size: 1.1rem !important;
    }
    
    .lead {
        font-size: 1rem !important;
    }
    
    .font-size-sm-alone {
        font-size: 0.875rem !important;
    }
}

/* 11. Referanslar Bölümü - Görsel Optimizasyonu */
@media screen and (max-width: 576px) {
    .hBiNPi picture img {
        max-width: 100% !important;
        height: auto !important;
        max-height: 50px !important;
    }
}

/* 12. Slider Kontrolleri - Mobil İyileştirmeleri */
@media screen and (max-width: 768px) {
    .flickity-page-dots {
        bottom: 10px !important;
    }
    
    .flickity-button {
        width: 30px !important;
        height: 30px !important;
    }
    
    .flickity-button-icon {
        width: 12px !important;
        height: 12px !important;
    }
}

/* 13. Overflow Sorunlarını Önleme */
@media screen and (max-width: 576px) {
    body {
        overflow-x: hidden !important;
    }
    
    .container,
    .container-fluid {
        overflow-x: hidden !important;
    }
}

/* 14. Touch Friendly Butonlar */
@media screen and (max-width: 768px) {
    .btn,
    .nav-link,
    a {
        min-height: 44px !important;
        min-width: 44px !important;
        display: inline-flex !important;
        align-items: center !important;
        justify-content: center !important;
    }
}

