/* Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@400;500;600;700&display=swap');

:root {
    --brand-red: #d21218;
    --brand-dark: #121e2d;
    --text-dark: #222222;
    --text-muted: #555555;
    --border-color: #eaeaea;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: 'Montserrat', sans-serif;
}

body { 
    background-color: #f8f9fa; 
}

.container {
    max-width: 1600px;
    margin: 0 auto;
    padding: 0 20px;
}

/* =========================================
   ÜST BAR (TOP BAR)
========================================= */
.top-bar {
    background-color: var(--brand-red);
    color: #ffffff;
    padding: 12px 0;
    font-size: 14px;
}

.top-bar-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.contact-info {
    display: flex;
    align-items: center;
}

.contact-info a {
    color: #ffffff;
    text-decoration: none;
    font-weight: 500;
}

.contact-info .fa-phone { margin-right: 5px; }
.contact-info .divider { margin: 0 15px; opacity: 0.5; }

.social-links {
    display: flex;
    align-items: center;
}

.social-links a {
    color: #ffffff;
    text-decoration: none;
    font-size: 18px;
    margin-left: 20px;
    transition: opacity 0.3s;
}

.social-links a:hover { opacity: 0.8; }

/* =========================================
   ANA HEADER (MASAÜSTÜ)
========================================= */
.main-header {
    background-color: #ffffff;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    padding: 15px 0;
    border-bottom: 1px solid var(--border-color);
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap; 
    gap: 15px;
}

.desktop-logo { display: block; }
.mobile-logo { display: none; }

.logo { order: 1; flex-shrink: 0; }
.logo img { height: 75px; width: auto; object-fit: contain; }

/* Özellikler Blokları */
.header-features {
    order: 2;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-grow: 1;
    gap: 25px;
}

.feature-item { display: flex; align-items: center; gap: 12px; }

.feature-icon {
    width: 45px; 
    height: 45px;
    border: 2px solid var(--brand-red);
    border-radius: 50%;
    display: flex; 
    align-items: center; 
    justify-content: center;
    color: var(--brand-red); 
    font-size: 18px;
}

.feature-text { display: flex; flex-direction: column; font-size: 13px; line-height: 1.3; }
.feature-text strong { color: var(--brand-dark); font-size: 14px; font-weight: 700; }
.feature-text span { color: var(--text-muted); }

.feature-divider { width: 1px; height: 40px; background-color: var(--border-color); }

/* Sağ Butonlar */
.header-buttons {
    order: 3;
    display: flex;
    gap: 15px;
    align-items: center;
}

.btn {
    text-decoration: none;
    padding: 10px 20px;
    border-radius: 6px;
    display: flex;
    align-items: center;
    gap: 10px;
    border: none;
    cursor: pointer;
    color: #fff;
    transition: all 0.3s ease;
}

.btn:hover { transform: translateY(-2px); opacity: 0.95; }

.btn-whatsapp { background-color: var(--brand-red); }
.btn-login { background-color: var(--brand-dark); }

.btn-whatsapp .fa-whatsapp, .btn-login .fa-user { font-size: 24px; }

/* Buton İçerisindeki Çift Satırlı Metin Yapısı */
.btn-text { 
    display: flex; 
    flex-direction: column; 
    font-size: 11px; 
    line-height: 1.2; 
    text-align: left; 
}

.btn-text .bold { 
    font-weight: 700; 
    font-size: 13px; 
}

.btn-whatsapp .arrow-icon { margin-left: 5px; font-size: 14px; }

.mobile-menu-btn { display: none; background: none; border: none; font-size: 28px; color: var(--brand-dark); cursor: pointer; }

/* =========================================
   TABLET VE ARA EKRANLAR
========================================= */
@media (max-width: 1200px) {
    .header-buttons {
        order: 2;
        flex-direction: column;
        align-items: stretch;
        gap: 8px;
        margin-left: auto;
    }
    
    .btn { padding: 8px 15px; justify-content: center; }
    
    .mobile-menu-btn { display: block; order: 3; margin-left: 15px; }

    .header-features {
        order: 4;
        width: 100%;
        margin-top: 10px;
        padding-top: 15px;
        border-top: 1px solid var(--border-color);
        justify-content: space-between;
        gap: 10px;
    }
    
    .feature-item { flex-direction: column; text-align: center; flex: 1; }
    .feature-divider { display: none; }
}

/* =========================================
   MOBİL (Yan Yana Sabitlenmiş Yapı) 📱
========================================= */
@media (max-width: 768px) {
    /* Taşıp aşağı inmesini engellemek için container boşluklarını (gap) kısıtlıyoruz */
    .header-container { gap: 0; padding: 0 10px; }

    .top-bar { font-size: 10px; padding: 8px 0; }
    .top-bar-container { flex-direction: row; }
    .contact-info { flex-direction: row; gap: 5px; }
    .contact-info .divider { display: inline; margin: 0 5px; }
    .social-links a { font-size: 14px; margin-left: 10px; }

    /* LOGO (Büyütüldü) */
    .desktop-logo { display: none; }
    .mobile-logo { 
        display: block; 
        height: 55px; /* Logo Yüksekliği Artırıldı */
        max-width: 100%; 
        object-fit: contain; 
    }
    .logo { 
        width: 40%; /* Logoya daha fazla alan */
    }
    
    /* BUTONLAR (Eşitlenmiş ve Ortaya Sabitlenmiş) */
    .header-buttons {
        width: 45%; 
        margin-left: auto;
        margin-right: auto;
        gap: 5px; /* Butonlar arası boşluk daraltıldı */
    }
    
    .btn { padding: 5px 6px; }
    .btn-whatsapp .fa-whatsapp, .btn-login .fa-user { font-size: 16px; }
    .btn-text { font-size: 7px; }
    .btn-text .bold { font-size: 9px; }
    .btn-whatsapp .arrow-icon { display: none; } /* Dar alanda ok ikonunu siliyoruz ki sığsın */
    
    /* HAMBURGER MENÜ (En Sağa Sabitlendi) */
    .mobile-menu-btn {
        width: 10%; 
        display: block;
        margin-left: 0;
        text-align: right;
    }

    /* ÖZELLİKLER ALT SATIRI */
    .header-features {
        width: 100%; 
        flex-direction: row; 
        justify-content: space-between;
        gap: 5px;
        margin-top: 15px; 
    }
    .feature-item { flex-direction: row; text-align: left; gap: 5px; }
    .feature-icon { width: 25px; height: 25px; font-size: 12px; border-width: 1px; }
    .feature-text { font-size: 8px; line-height: 1.1; }
    .feature-text strong { font-size: 9px; }
    .feature-divider { display: block; height: 25px; margin: 0 2px; }
}