/* Navbar Responsive Styles */

/* 1440px ve küçük laptop ekranları için navbar düzeltmeleri */
@media (min-width: 1200px) and (max-width: 1599px) {
    /* Navbar link'lerinin padding'ini küçült */
    .navbar-nav .nav-link {
        padding-left: 0.6rem !important;
        padding-right: 0.6rem !important;
        font-size: 0.9rem !important;
    }
}

/* 1366px - 1440px arası ekranlar için daha agresif küçültme */
@media (min-width: 1200px) and (max-width: 1440px) {
    .navbar-nav .nav-link {
        padding-left: 0.5rem !important;
        padding-right: 0.5rem !important;
        font-size: 0.85rem !important;
    }
}

/* 1280px - 1366px arası ekranlar için en kompakt hali */
@media (min-width: 1200px) and (max-width: 1366px) {
    .navbar-nav .nav-link {
        padding-left: 0.4rem !important;
        padding-right: 0.4rem !important;
        font-size: 0.8rem !important;
    }
}

/* Alternatif çözüm: 1440px altında bazı menü öğelerini gizle */
@media (min-width: 1200px) and (max-width: 1440px) {
    /* Menü öğelerinin taşmasını engelle */
    .navbar-nav .nav-link {
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }
    
    /* Navbar'ın flex özelliklerini optimize et */
    .navbar-collapse {
        flex-wrap: nowrap;
    }
    
    .navbar-nav {
        flex-shrink: 1;
        min-width: 0;
    }
}

/* Dark mode toggle'ın her zaman görünür olması için */
@media (min-width: 1200px) {
    .d-none.d-xl-flex {
        display: flex !important;
        flex-shrink: 0;
    }
}

/* Navbar container genişliği */
@media (min-width: 1200px) and (max-width: 1440px) {
    .navbar-collapse {
        justify-content: space-between;
    }
    
    .navbar-nav {
        flex-wrap: nowrap;
        overflow-x: visible;
    }
}

/* Topbar (üst kısım) için düzeltmeler */
@media (min-width: 992px) and (max-width: 1599px) {
    .container-fluid .row.align-items-center.py-4.px-xl-5 {
        padding-left: 1rem !important;
        padding-right: 1rem !important;
    }
    
    .container-fluid .row.align-items-center.py-4.px-xl-5 .col-lg-3 {
        padding-left: 0.5rem;
        padding-right: 0.5rem;
    }
    
    /* Logo boyutunu küçült */
    .container-fluid .row.align-items-center.py-4.px-xl-5 .col-lg-3 img {
        width: 240px !important;
        max-width: 240px !important;
    }
    
    /* İletişim bilgilerinin font boyutunu küçült */
    .container-fluid .row.align-items-center.py-4.px-xl-5 h6 {
        font-size: 0.9rem;
        margin-bottom: 0.3rem;
    }
    
    .container-fluid .row.align-items-center.py-4.px-xl-5 small {
        font-size: 0.8rem;
    }
    
    .container-fluid .row.align-items-center.py-4.px-xl-5 .fa-2x {
        font-size: 1.6rem !important;
    }
}

/* 1200px - 1440px için daha agresif topbar küçültme */
@media (min-width: 1200px) and (max-width: 1440px) {
    .container-fluid .row.align-items-center.py-4.px-xl-5 .col-lg-3 img {
        width: 220px !important;
        max-width: 220px !important;
    }
    
    .container-fluid .row.align-items-center.py-4.px-xl-5 h6 {
        font-size: 0.85rem;
    }
    
    .container-fluid .row.align-items-center.py-4.px-xl-5 small {
        font-size: 0.75rem;
    }
    
    .container-fluid .row.align-items-center.py-4.px-xl-5 .fa-2x {
        font-size: 1.5rem !important;
    }
}

/* Navbar yüksekliğini küçült */
@media (min-width: 1200px) and (max-width: 1599px) {
    .navbar {
        padding-top: 0.6rem !important;
        padding-bottom: 0.6rem !important;
    }
}

@media (min-width: 1200px) and (max-width: 1440px) {
    .navbar {
        padding-top: 0.5rem !important;
        padding-bottom: 0.5rem !important;
    }
}

/* Sol taraftaki "Kurslar" dropdown'ı küçült */
@media (min-width: 1200px) and (max-width: 1599px) {
    .col-lg-2.d-none.d-xl-block a h5 {
        font-size: 1rem !important;
    }
    
    .col-lg-2.d-none.d-xl-block {
        flex: 0 0 16% !important;
        max-width: 16% !important;
    }
    
    .col-lg-12.col-xl-10 {
        flex: 0 0 84% !important;
        max-width: 84% !important;
    }
}

@media (min-width: 1200px) and (max-width: 1440px) {
    .col-lg-2.d-none.d-xl-block a h5 {
        font-size: 0.95rem !important;
    }
    
    .col-lg-2.d-none.d-xl-block {
        flex: 0 0 15% !important;
        max-width: 15% !important;
    }
    
    .col-lg-12.col-xl-10 {
        flex: 0 0 85% !important;
        max-width: 85% !important;
    }
}
