/* =============================
HEADER GENEL ALANI
============================= */
.main-header {
    position: fixed; top: 0; left: 0; width: 100%; z-index: 1000;
    background-color: var(--pure-white); padding: 5px 0;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05); border-bottom: 1px solid #eee;
    transition: all 0.4s ease-in-out;
    transform: translateY(0);
}
.main-header.header-hidden {
    transform: translateY(-100%);
}
.main-header.scrolled {
    background-color: var(--primary-blue);
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    border-bottom-color: transparent;
}
.main-header .container {
    max-width: 1300px; margin: 0 auto; padding: 0 20px;
    display: flex; align-items: center;
    min-height: 80px; transition: min-height 0.4s ease;
}
.main-header.scrolled .container { min-height: 70px; }

/* =============================
MASAÜSTÜ NAVİGASYON
============================= */
.desktop-nav {
    display: grid; 
    grid-template-columns: 1fr auto 1fr;
    gap: 50px;
    align-items: center; 
    width: 100%;
}
.nav-left { justify-self: end; }
.nav-right { justify-self: start; }
.nav-links { display: flex; list-style: none; }
.nav-links li { 
    padding: 0 20px; 
} 
.nav-links a {
    position: relative; 
    padding: 5px 0; 
    font-size: 15px; 
    font-weight: 400;
    text-transform: uppercase; 
    letter-spacing: 0.5px; 
    white-space: nowrap;
    color: var(--primary-blue); 
    transition: color 0.4s ease;
}
.nav-links a:hover { color: var(--accent-orange); }
.nav-links a::after {
    content: ''; position: absolute; width: 100%; height: 2px;
    background-color: var(--accent-orange); bottom: 0; left: 0;
    transform: scaleX(0); transform-origin: center;
    transition: transform 0.4s cubic-bezier(0.19, 1, 0.22, 1);
}
.nav-links a:hover::after { transform: scaleX(1); }

.logo-container {
    justify-self: center; display: flex; align-items: center;
    gap: 20px; color: var(--primary-blue);
    transition: color 0.4s ease; text-decoration: none;
}
.logo-abbr {
    font-family: 'Lato', sans-serif; font-weight: 900;
    font-size: 44px; letter-spacing: -1.5px;
    color: currentColor;
}
.logo-text-part { display: flex; flex-direction: column; position: relative; padding: 5px 0; }
.logo-text-part span {
    font-family: 'Lato', sans-serif; font-weight: 700; font-size: 13px;
    letter-spacing: 2px; line-height: 1.4; color: currentColor;
}
.logo-text-part .line {
    position: absolute; left: 0; width: 100%; height: 2px;
    background-color: currentColor;
}
.logo-text-part .line.top { top: 0; }
.logo-text-part .line.bottom { bottom: 0; }

.main-header.scrolled .logo-container,
.main-header.scrolled .nav-links a { color: var(--pure-white); }
.main-header.scrolled .mobile-menu-toggle .line { background-color: var(--pure-white); }


/* ==================================================================== */
/* SADECE MASAÜSTÜ İÇİN SÜRÜKLENEBİLİR BUTON STİLLERİ */
/* ==================================================================== */
@media (min-width: 1025px) {

    .trink-sat-bubble {
        position: fixed;
        z-index: 9998;
        width: 80px;
        height: 80px;
        background-color: var(--accent-orange);
        color: var(--primary-blue);
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 14px;
        font-weight: 700;
        text-align: center;
        line-height: 1.2;
        box-shadow: 0 5px 20px rgba(0,0,0,0.15);
        cursor: grab;
        user-select: none;
        transition: transform 0.3s ease, left 0.4s cubic-bezier(0.25, 1, 0.5, 1);
        border: 3px solid var(--accent-orange);
    }

    .trink-sat-bubble::before {
        content: '';
        position: absolute;
        z-index: -1;
        left: -8px;
        top: -8px;
        right: -8px;
        bottom: -8px;
        border-radius: 50%;
        border: 3px solid var(--accent-orange);
        animation: breathe 2.5s ease-in-out infinite;
    }

    @keyframes breathe {
        0% {
            transform: scale(0.95);
            opacity: 0.5;
        }
        50% {
            transform: scale(1.1);
            opacity: 1;
        }
        100% {
            transform: scale(0.95);
            opacity: 0.5;
        }
    }

    .trink-sat-bubble.is-dragging {
        cursor: grabbing;
        transform: scale(1.1);
        transition: none;
    }
    
    .trink-sat-bubble.is-dragging::before {
        display: none;
    }

    .header-cta-container.is-empty {
        opacity: 0;
        pointer-events: none;
        transition: opacity 0.3s ease;
    }
}


/* =============================
MOBİL NAVİGASYON
============================= */
.mobile-header { display: none; }
.mobile-nav { display: none; }

@media (max-width: 1024px) {
    .desktop-nav { display: none; }
    .main-header .container { justify-content: space-between; }
    
    .mobile-header {
        display: flex; 
        justify-content: space-between;
        align-items: center; 
        width: 100%;
        gap: 15px;
    }
    
    .mobile-header .btn {
        padding: 8px 15px;
        font-size: 14px;
    }

    .trink-sat-bubble {
        display: none !important;
    }

    .mobile-header .logo-container {
        flex-direction: row;
        align-items: center;
        gap: 15px;
        flex-shrink: 1;
        min-width: 0;
    }

    .mobile-header .logo-abbr {
        font-size: 38px;
        line-height: 1;
    }

    .mobile-header .logo-text-part {
        display: flex;
        flex-direction: column;
        position: relative;
        padding: 4px 0;
        width: auto;
    }
    
    .mobile-header .logo-text-part span {
        display: block;
        justify-content: flex-start;
        width: auto;
        font-size: 10px;
        font-weight: 700;
        white-space: nowrap;
        letter-spacing: 1.5px;
        line-height: 1.3;
        margin: 0;
    }
    
    .mobile-header .logo-text-part span:first-of-type::after {
        content: '';
    }
    .mobile-header .logo-text-part span:last-of-type {
        display: block;
    }

    .mobile-header .logo-text-part .line {
        position: absolute;
        width: 100%;
        height: 1.5px;
    }
    
    .mobile-header .header-right-group {
        display: flex;
        align-items: center;
        gap: 15px;
        flex-shrink: 0;
    }

    .mobile-menu-toggle {
        display: block; width: 30px; height: 24px; position: relative;
        cursor: pointer; z-index: 1002; background: none; border: none;
    }
    .mobile-menu-toggle .line {
        display: block; width: 100%; height: 3px;
        background-color: var(--primary-blue);
        border-radius: 3px; position: absolute; left: 0;
        transition: all 0.3s ease-in-out;
    }
    .mobile-menu-toggle .line:nth-child(1) { top: 0; }
    .mobile-menu-toggle .line:nth-child(2) { top: 50%; transform: translateY(-50%); }
    .mobile-menu-toggle .line:nth-child(3) { bottom: 0; }

    .mobile-nav {
        position: fixed; top: 0; left: 0; width: 100%; height: 100%;
        background-color: rgba(0, 74, 153, 0.98);
        backdrop-filter: blur(5px);
        display: flex; flex-direction: column; justify-content: center; align-items: center;
        z-index: 1001; opacity: 0; visibility: hidden;
        transform: translateY(-20px);
        transition: opacity 0.4s ease, visibility 0.4s ease, transform 0.4s ease;
    }
    .mobile-nav.is-open {
        opacity: 1; visibility: visible; transform: translateY(0);
    }
    .mobile-nav .nav-links { flex-direction: column; text-align: center; gap: 15px; }
    .mobile-nav .nav-links li { padding: 10px 0; }
    .mobile-nav .nav-links a { color: var(--pure-white); font-size: 24px; font-weight: 700;}

    .mobile-nav-close {
        position: absolute;
        top: 28px;
        right: 20px;
        width: 30px;
        height: 30px;
        background: none;
        border: none;
        cursor: pointer;
        z-index: 1003;
    }
    .mobile-nav-close::before,
    .mobile-nav-close::after {
        content: '';
        position: absolute;
        top: 50%;
        left: 0;
        width: 100%;
        height: 3px;
        background-color: var(--pure-white);
        border-radius: 3px;
    }
    .mobile-nav-close::before {
        transform: translateY(-50%) rotate(45deg);
    }
    .mobile-nav-close::after {
        transform: translateY(-50%) rotate(-45deg);
    }
}