/* Homepage Responsive CSS - Tüm Cihazlar İçin */

/* ===== GENEL STİLLER ===== */
* {
    box-sizing: border-box;
}

body {
    font-family: "Open Sans", sans-serif;
    line-height: 1.6;
    margin: 0;
    padding: 0;
    background: #f6f9ff;
    color: #444444;
}

/* ===== HEADER STİLLERİ ===== */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 60px;
    background: #fff;
    box-shadow: 0 2px 20px rgba(1, 2, 70, 0.1);
    z-index: 9997;
    transition: all 0.3s ease;
}

.header .container-lg {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 100%;
    padding: 0 15px;
}

/* Logo Stilleri */
.logo {
    display: flex;
    align-items: center;
    text-decoration: none;
    color: #012970;
    font-weight: 700;
    font-size: 30px;
    line-height: 0;
    margin-left: -10px; /* Sol tarafa kaydır */
}

.logo img {
    max-height: 40px;
    margin-right: 6px;
}

.logo span {
    font-size: 24px;
    font-weight: 700;
    color: #012970;
    margin-left: 6px;
}

/* Navigation Stilleri */
.header-nav {
    display: flex;
    align-items: center;
}

.header-nav ul {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    align-items: center;
}

.header-nav .nav-item {
    margin: 0 10px;
}

.header-nav .nav-link {
    color: #012970;
    font-weight: 600;
    padding: 10px 15px;
    text-decoration: none;
    transition: all 0.3s ease;
    border-radius: 4px;
    white-space: nowrap;
}

.header-nav .nav-link:hover {
    color: #4154f1;
    background: #f6f9ff;
}

/* Giriş Yap Butonu */
.btn-primary {
    background: #4154f1;
    border: 1px solid #4154f1;
    color: #fff;
    padding: 8px 20px;
    border-radius: 4px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.btn-primary:hover {
    background: #5969f3;
    border-color: #5969f3;
    color: #fff;
}

/* Mobil Menü Butonu */
.navbar-toggler {
    display: none;
    background: none;
    border: none;
    padding: 8px 12px;
    cursor: pointer;
    position: relative;
}

.navbar-toggler-icon {
    display: block;
    width: 20px;
    height: 2px;
    background-color: #012970;
    position: relative;
    transition: all 0.3s ease;
}

.navbar-toggler-icon::before,
.navbar-toggler-icon::after {
    content: '';
    position: absolute;
    width: 20px;
    height: 2px;
    background-color: #012970;
    transition: all 0.3s ease;
}

.navbar-toggler-icon::before {
    top: -6px;
}

.navbar-toggler-icon::after {
    bottom: -6px;
}

/* ===== MOBİL SIDEBAR STİLLERİ ===== */
.mobile-sidebar {
    position: fixed;
    top: 0;
    left: -100%;
    width: 280px;
    height: 100vh;
    background: #fff;
    z-index: 9999;
    transition: left 0.3s ease;
    box-shadow: 2px 0 10px rgba(0,0,0,0.1);
    overflow-y: auto;
}

.mobile-sidebar.show {
    left: 0;
}

.mobile-sidebar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    border-bottom: 1px solid #eee;
    background: #f8f9fa;
    position: sticky;
    top: 0;
    z-index: 1;
}

.mobile-sidebar-header h5 {
    margin: 0;
    color: #012970;
    font-weight: 600;
}

.mobile-sidebar-header .btn-close {
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: #666;
    padding: 0;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.mobile-sidebar-body {
    padding: 0;
}

.mobile-nav {
    list-style: none;
    margin: 0;
    padding: 0;
}

.mobile-nav-item {
    border-bottom: 1px solid #eee;
}

.mobile-nav-link {
    display: block;
    padding: 15px 20px;
    color: #012970;
    text-decoration: none;
    font-size: 16px;
    font-weight: 500;
    transition: background-color 0.2s;
    white-space: nowrap;
}

.mobile-nav-link:hover {
    background-color: #f6f9ff;
    color: #4154f1;
}

.mobile-sidebar-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    z-index: 9998;
    display: none;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.mobile-sidebar-overlay.show {
    display: block;
    opacity: 1;
}

/* ===== ANA İÇERİK STİLLERİ ===== */
#main {
    margin-top: 60px;
    padding: 20px;
    min-height: calc(100vh - 60px);
    background: #f6f9ff;
}

/* ===== RESPONSIVE MEDIA QUERIES ===== */

/* Büyük Ekranlar (1200px ve üzeri) */
@media (min-width: 1200px) {
    .header .container-lg {
        max-width: 1140px;
        margin: 0 auto;
        padding: 0 30px;
    }
    
    .logo span {
        font-size: 28px;
    }
    
    .header-nav .nav-item {
        margin: 0 15px;
    }
    
    .header-nav .nav-link {
        padding: 12px 18px;
        font-size: 16px;
    }
}

/* Orta Ekranlar (992px - 1199px) */
@media (min-width: 992px) and (max-width: 1199px) {
    .header .container-lg {
        max-width: 960px;
        margin: 0 auto;
        padding: 0 20px;
    }
    
    .logo span {
        font-size: 26px;
    }
    
    .header-nav .nav-item {
        margin: 0 8px;
    }
    
    .header-nav .nav-link {
        padding: 10px 14px;
        font-size: 15px;
    }
}

/* Tablet (768px - 991px) */
@media (min-width: 768px) and (max-width: 991px) {
    .header .container-lg {
        padding: 0 15px;
    }
    
    .logo span {
        font-size: 24px;
    }
    
    .header-nav .nav-item {
        margin: 0 6px;
    }
    
    .header-nav .nav-link {
        padding: 8px 12px;
        font-size: 14px;
    }
    
    .btn-primary {
        padding: 6px 16px;
        font-size: 14px;
    }
}

/* Mobil (768px ve altı) */
@media (max-width: 768px) {
    .header .container-lg {
        padding: 0 10px;
    }
    
    /* Logo gizle */
    .logo span {
        display: none;
    }
    
    /* Logo pozisyonu */
    .logo {
        margin-left: -5px; /* Mobilde daha az kaydır */
    }
    
    /* Navigation gizle */
    .header-nav {
        display: none !important;
    }
    
    /* Mobil menü butonu göster */
    .navbar-toggler {
        display: block !important;
        order: 2;
    }
    
    /* Giriş butonu */
    .btn-primary {
        padding: 6px 12px;
        font-size: 13px;
        order: 3;
    }
    
    /* Container düzeni */
    .header .container-lg {
        justify-content: space-between;
    }
    
    .header .d-flex.align-items-center.justify-content-between {
        order: 3;
    }
    
    /* Ana içerik */
    #main {
        padding: 15px;
    }
}

/* Küçük Mobil (576px ve altı) */
@media (max-width: 576px) {
    .header {
        height: 55px;
    }
    
    .header .container-lg {
        padding: 0 8px;
    }
    
    .logo {
        margin-left: -3px; /* Küçük mobilde daha az kaydır */
    }
    
    .logo img {
        max-height: 35px;
    }
    
    .navbar-toggler {
        padding: 6px 8px;
    }
    
    .navbar-toggler-icon {
        width: 18px;
        height: 2px;
    }
    
    .navbar-toggler-icon::before,
    .navbar-toggler-icon::after {
        width: 18px;
        height: 2px;
    }
    
    .navbar-toggler-icon::before {
        top: -5px;
    }
    
    .navbar-toggler-icon::after {
        bottom: -5px;
    }
    
    .btn-primary {
        padding: 5px 10px;
        font-size: 12px;
    }
    
    #main {
        margin-top: 55px;
        padding: 10px;
    }
    
    /* Mobil sidebar genişliği */
    .mobile-sidebar {
        width: 260px;
    }
    
    .mobile-sidebar-header {
        padding: 15px;
    }
    
    .mobile-sidebar-header h5 {
        font-size: 18px;
    }
    
    .mobile-nav-link {
        padding: 12px 15px;
        font-size: 15px;
    }
}

/* Çok Küçük Mobil (375px ve altı) */
@media (max-width: 375px) {
    .header {
        height: 50px;
    }
    
    .header .container-lg {
        padding: 0 5px;
    }
    
    .logo img {
        max-height: 30px;
    }
    
    .navbar-toggler {
        padding: 5px 6px;
    }
    
    .navbar-toggler-icon {
        width: 16px;
        height: 2px;
    }
    
    .navbar-toggler-icon::before,
    .navbar-toggler-icon::after {
        width: 16px;
        height: 2px;
    }
    
    .navbar-toggler-icon::before {
        top: -4px;
    }
    
    .navbar-toggler-icon::after {
        bottom: -4px;
    }
    
    .btn-primary {
        padding: 4px 8px;
        font-size: 11px;
    }
    
    #main {
        margin-top: 50px;
        padding: 8px;
    }
    
    /* Mobil sidebar genişliği */
    .mobile-sidebar {
        width: 240px;
    }
    
    .mobile-sidebar-header {
        padding: 12px;
    }
    
    .mobile-sidebar-header h5 {
        font-size: 16px;
    }
    
    .mobile-nav-link {
        padding: 10px 12px;
        font-size: 14px;
    }
}

/* ===== ÖZEL DURUMLAR ===== */

/* Landscape modunda mobil */
@media (max-width: 768px) and (orientation: landscape) {
    .header {
        height: 50px;
    }
    
    #main {
        margin-top: 50px;
    }
    
    .mobile-sidebar {
        width: 250px;
    }
}

/* Yüksek DPI ekranlar */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    .logo img {
        image-rendering: -webkit-optimize-contrast;
        image-rendering: crisp-edges;
    }
}

/* Karanlık mod desteği kaldırıldı - site beyaz temalı */

/* Animasyon azaltma tercihi */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* ===== UTILITY CLASSES ===== */
.d-none {
    display: none !important;
}

.d-block {
    display: block !important;
}

.d-flex {
    display: flex !important;
}

.align-items-center {
    align-items: center !important;
}

.justify-content-between {
    justify-content: space-between !important;
}

@media (min-width: 769px) {
    .d-lg-none {
        display: none !important;
    }
    
    .d-lg-block {
        display: block !important;
    }
}

@media (max-width: 768px) {
    .d-md-none {
        display: none !important;
    }
    
    .d-md-block {
        display: block !important;
    }
} 