/* Solid Minimal Header - Zero-transition stable design */

/* Fixed body padding - NO transitions */
body:has(.header--solid) {
    padding-top: 110px;
}

.header--solid {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    width: 100%;
    height: 110px;
    z-index: 1000;
    background: #fff;
    border-bottom: 2px solid #e9e7e1;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.05);
}

.header--solid .header__inner {
    max-width: 1550px;
    height: 110px;
    margin: 0 auto;
    padding: 0 22px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

/* Logo - fixed size, no transition */
.header--solid .brand {
    flex-shrink: 0;
}

.header--solid .brand__logo {
    height: 52px;
    width: auto;
    display: block;
}

/* Navigation - sağa yaslanmış, kompakt */
.header--solid .nav {
    display: flex;
    align-items: center;
    gap: 2px;
    margin-left: auto;
}

.header--solid .nav__list {
    display: flex;
    align-items: center;
    gap: 2px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.header--solid .nav__link {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 8px 12px;
    font-weight: 600;
    font-size: 12px;
    color: #2b2b2b;
    text-decoration: none;
    border-radius: 6px;
    position: relative;
    white-space: nowrap;
}

.header--solid .nav__link:hover {
    background: #edf3f9;
    color: #1a3a5c;
}

.header--solid .nav__link.is-active {
    color: #1a3a5c;
    background: #edf3f9;
}

.header--solid .nav__link.is-active::after {
    content: '';
    position: absolute;
    left: 12px;
    right: 12px;
    bottom: 4px;
    height: 2px;
    background: #1a3a5c;
    border-radius: 2px;
}

/* Dropdown parent */
.header--solid .nav__parent {
    cursor: pointer;
    user-select: none;
}

.header--solid .nav__parent .ico {
    width: 11px;
    height: 11px;
}

/* Dropdown menu - compact list */
.header--solid .nav__item.has-dropdown {
    position: relative;
}

.header--solid .dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 200px;
    max-width: 220px;
    background: #fff;
    border: 1px solid #e9e7e1;
    border-radius: 8px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
    padding: 6px;
    margin-top: 0;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    z-index: 100;
    display: grid;
    grid-template-columns: 1fr;
    gap: 2px;
}

.header--solid .nav__item.has-dropdown:hover .dropdown,
.header--solid .nav__item.has-dropdown.is-open .dropdown {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.header--solid .dropdown a {
    display: block;
    padding: 8px 10px;
    border-radius: 5px;
    text-decoration: none;
    font-size: 12px;
    font-weight: 500;
    color: #2b2b2b;
}

.header--solid .dropdown a:hover {
    background: #edf3f9;
    color: #1a3a5c;
}

/* CTA Buttons - hidden on desktop, shown on mobile */
.header--solid .header__cta {
    display: none;
}

.header--solid .cta-btn {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 9px 16px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 14px;
    text-decoration: none;
    white-space: nowrap;
}

.header--solid .cta-btn--phone {
    background: #edf3f9;
    color: #1a3a5c;
    border: 1px solid #3d6a99;
}

.header--solid .cta-btn--phone:hover {
    background: #1a3a5c;
    color: #fff;
}

.header--solid .cta-btn--wa {
    background: #25d366;
    color: #fff;
}

.header--solid .cta-btn--wa:hover {
    background: #1aa851;
}

.header--solid .cta-btn .ico {
    width: 17px;
    height: 17px;
}

/* Arama butonu - kaldırıldı */
.header--solid .search-toggle {
    display: none;
}

/* Desktop: telefon ve WhatsApp butonları gizli (mobilde kalır) */
@media (min-width: 1101px) {
    .header--solid .header__actions .cta-btn {
        display: none;
    }

    /* Menü bağlantılarını sağa yasla */
    .header--solid .nav {
        margin: 0 0 0 auto;
    }

    .header--solid .header__actions {
        margin-left: 0;
    }
}

/* Mobile toggle */
.header--solid .nav-toggle {
    display: none;
    align-items: center;
    gap: 6px;
    padding: 9px 13px;
    background: #edf3f9;
    border: 1px solid #3d6a99;
    border-radius: 8px;
    color: #1a3a5c;
    font-weight: 600;
    font-size: 13px;
    cursor: pointer;
}

.header--solid .nav-toggle .ico {
    width: 20px;
    height: 20px;
}

.header--solid .nav__head,
.header--solid .nav__close {
    display: none;
}

/* Mobile Responsive */
@media (max-width: 1100px) {
    body:has(.header--solid) {
        padding-top: 62px;
    }

    .header--solid {
        height: 62px;
    }

    .header--solid .header__inner {
        height: 62px;
        gap: 14px;
    }

    .header--solid .brand__logo {
        height: 48px;
    }

    .header--solid .nav-toggle {
        display: flex;
    }

    .header--solid .nav {
        position: fixed;
        top: 0;
        right: -100%;
        width: 320px;
        max-width: 85vw;
        height: 100vh;
        background: #fff;
        flex-direction: column;
        align-items: stretch;
        margin: 0;
        padding: 0;
        box-shadow: -4px 0 28px rgba(0, 0, 0, 0.18);
        overflow-y: auto;
        z-index: 1001;
    }

    .header--solid .nav.is-open {
        right: 0;
    }

    .header--solid .nav__head {
        display: flex;
        align-items: center;
        justify-content: space-between;
        padding: 18px;
        border-bottom: 2px solid #e9e7e1;
        background: #fbfaf7;
    }

    .header--solid .nav__head-brand {
        font-weight: 700;
        font-size: 17px;
        color: #2b2b2b;
    }

    .header--solid .nav__close {
        display: flex;
        align-items: center;
        justify-content: center;
        width: 34px;
        height: 34px;
        background: #fff;
        border: 1px solid #e9e7e1;
        border-radius: 7px;
        font-size: 22px;
        color: #2b2b2b;
        cursor: pointer;
    }

    .header--solid .nav__close:hover {
        background: #1a3a5c;
        color: #fff;
    }

    .header--solid .nav__list {
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        width: 100%;
    }

    .header--solid .nav__link {
        padding: 14px 18px;
        border-radius: 0;
        border-bottom: 1px solid #f5f4f1;
        font-size: 14.5px;
    }

    .header--solid .nav__link.is-active::after {
        left: 0;
        right: auto;
        top: 0;
        bottom: 0;
        width: 3px;
        height: 100%;
    }

    .header--solid .dropdown {
        position: static;
        border: none;
        border-radius: 0;
        box-shadow: none;
        background: #fbfaf7;
        padding: 0;
        margin: 0;
        min-width: 0;
        max-height: 0;
        overflow: hidden;
    }

    .header--solid .nav__item.has-dropdown.is-open .dropdown {
        display: block;
        max-height: 500px;
        opacity: 1;
        visibility: visible;
        pointer-events: auto;
    }

    .header--solid .dropdown a {
        padding: 11px 18px 11px 36px;
        border-radius: 0;
        border-bottom: 1px solid #e9e7e1;
        font-size: 13.5px;
    }

    .header--solid .header__cta {
        display: flex;
        padding: 16px 18px;
        border-top: 2px solid #e9e7e1;
        background: #fbfaf7;
        gap: 8px;
    }

    .header--solid .cta-btn {
        flex: 1;
        justify-content: center;
        padding: 11px;
        font-size: 13.5px;
    }
}

@media (max-width: 620px) {
    body:has(.header--solid) {
        padding-top: 64px;
    }

    .header--solid {
        height: 64px;
    }

    .header--solid .header__inner {
        height: 64px;
        padding: 0 16px;
        gap: 12px;
    }

    .header--solid .brand__logo {
        height: 46px;
    }

    /* Desktop nav gizle */
    .header--solid .nav {
        display: none;
    }

    /* Menu toggle gizle */
    .header--solid .nav-toggle {
        display: none;
    }

    /* Header actions - sadece telefon */
    .header--solid .header__actions {
        display: flex;
        align-items: center;
        margin-left: auto;
    }

    /* Arama butonu kaldır */
    .header--solid .search-toggle {
        display: none;
    }

    /* Telefon butonu - 3D animasyonlu */
    .header--solid .cta-btn--phone {
        display: flex;
        align-items: center;
        justify-content: center;
        width: 48px;
        height: 48px;
        background: linear-gradient(145deg, #34e89e, #0f3443);
        border-radius: 14px;
        padding: 0;
        text-decoration: none;
        position: relative;
        transform-style: preserve-3d;
        perspective: 1000px;
        box-shadow:
            0 5px 15px rgba(15, 52, 67, 0.4),
            inset 0 1px 0 rgba(255,255,255,0.3);
        animation: phone3DFloat 3s ease-in-out infinite;
    }

    @keyframes phone3DFloat {
        0%, 100% {
            transform: translateY(0) rotateX(0deg) rotateY(0deg);
            box-shadow: 0 5px 15px rgba(15, 52, 67, 0.4);
        }
        25% {
            transform: translateY(-4px) rotateX(5deg) rotateY(-5deg);
            box-shadow: 0 8px 20px rgba(15, 52, 67, 0.5);
        }
        50% {
            transform: translateY(-6px) rotateX(0deg) rotateY(5deg);
            box-shadow: 0 10px 25px rgba(15, 52, 67, 0.6);
        }
        75% {
            transform: translateY(-4px) rotateX(-5deg) rotateY(0deg);
            box-shadow: 0 8px 20px rgba(15, 52, 67, 0.5);
        }
    }

    /* 3D glowing ring */
    .header--solid .cta-btn--phone::before {
        content: '';
        position: absolute;
        inset: -4px;
        border-radius: 16px;
        background: linear-gradient(45deg, #34e89e, #0f3443, #34e89e, #0f3443);
        background-size: 400% 400%;
        z-index: -1;
        filter: blur(8px);
        opacity: 0.7;
        animation: phoneGlowRotate 4s linear infinite;
    }

    @keyframes phoneGlowRotate {
        0% { background-position: 0% 50%; }
        100% { background-position: 200% 50%; }
    }

    /* Telefon SVG icon - 3D swing */
    .header--solid .cta-btn--phone .ico {
        width: 22px;
        height: 22px;
        color: #fff;
        filter: drop-shadow(0 2px 4px rgba(0,0,0,0.3));
        transform-style: preserve-3d;
        animation: phoneSwing3D 2s ease-in-out infinite;
    }

    @keyframes phoneSwing3D {
        0%, 100% {
            transform: rotateZ(0deg) rotateY(0deg) scale(1);
        }
        10% {
            transform: rotateZ(-20deg) rotateY(-15deg) scale(1.05);
        }
        20% {
            transform: rotateZ(15deg) rotateY(10deg) scale(1.05);
        }
        30% {
            transform: rotateZ(-15deg) rotateY(-10deg) scale(1.05);
        }
        40% {
            transform: rotateZ(10deg) rotateY(5deg) scale(1.05);
        }
        50% {
            transform: rotateZ(0deg) rotateY(0deg) scale(1);
        }
    }

    /* Ripple wave efekti */
    .header--solid .cta-btn--phone::after {
        content: '';
        position: absolute;
        inset: 0;
        border-radius: 14px;
        border: 2px solid rgba(52, 232, 158, 0.8);
        animation: phoneRipple 2.5s ease-out infinite;
    }

    @keyframes phoneRipple {
        0% {
            transform: scale(1);
            opacity: 1;
        }
        100% {
            transform: scale(1.6);
            opacity: 0;
        }
    }

    .header--solid .cta-btn--phone span {
        display: none;
    }

    .header--solid .cta-btn--phone:active {
        transform: scale(0.9) rotateY(10deg);
        animation: none;
    }

    .header--solid .cta-btn--phone:active::before,
    .header--solid .cta-btn--phone:active::after {
        animation-play-state: paused;
    }

    /* WhatsApp gizle */
    .header--solid .cta-btn--wa {
        display: none;
    }
}
