/* ============================================================
   header.css — Üst menü (masaüstü) + mobil alt menü
   ============================================================ */

.od-header {
    position: sticky;
    top: 0;
    z-index: var(--od-z-header);
    background: var(--od-secondary-deep);
    border-bottom: 1px solid var(--od-dark-line);
    transition: box-shadow var(--od-t), background var(--od-t);
}

.od-header.is-stuck {
    background: rgba(20, 60, 62, .96);
    background: color-mix(in srgb, var(--od-secondary-deep) 96%, transparent);
    backdrop-filter: blur(10px);
    box-shadow: 0 .5rem 1.5rem rgba(12, 39, 41, .28);
    box-shadow: 0 .5rem 1.5rem color-mix(in srgb, var(--od-secondary-darkest) 28%, transparent);
}

.od-header__inner {
    display: flex;
    align-items: center;
    gap: 1rem;
    min-height: 4.5rem;
}

/* ---------------- Logo ---------------- */
.od-brand {
    display: inline-flex;
    align-items: center;
    flex-shrink: 0;
}

.od-brand img {
    height: 2.4rem;
    width: auto;
}

/* ---------------- Menü ---------------- */
.od-nav {
    display: none;
    margin-inline: auto;
}

.od-nav__list {
    display: flex;
    align-items: center;
    gap: .25rem;
    list-style: none;
    padding: 0;
    margin: 0;
}

.od-nav__link {
    position: relative;
    display: block;
    padding: .55rem .9rem;
    border-radius: var(--od-r-sm);
    color: var(--od-dark-text);
    font-size: var(--od-fs-sm);
    font-weight: 600;
    white-space: nowrap;
}

.od-nav__link:hover {
    color: #fff;
    background: rgba(255, 255, 255, .06);
}

.od-nav__link.is-active {
    color: #fff;
}

.od-nav__link.is-active::after {
    content: "";
    position: absolute;
    left: .9rem;
    right: .9rem;
    bottom: .18rem;
    height: 2px;
    border-radius: 2px;
    background: var(--od-primary);
}

/* ---------------- Sağdaki aksiyonlar ---------------- */
.od-header__actions {
    display: flex;
    align-items: center;
    gap: .5rem;
    margin-left: auto;
}

@media (min-width: 992px) {
    .od-nav {
        display: block;
    }

    .od-header__actions {
        margin-left: 0;
    }
}

@media (max-width: 991.98px) {
    .od-header__inner {
        min-height: 3.9rem;
    }

    .od-brand img {
        height: 2rem;
    }

    .od-header__actions .od-btn {
        padding: .5rem .8rem;
        font-size: var(--od-fs-sm);
        border-radius: var(--od-r-sm);
    }

    .od-header__actions .od-btn i.bi-arrow-right {
        display: none;
    }
}

@media (max-width: 400px) {
    .od-header__actions .od-btn--ghost-light .od-btn__txt {
        display: none;
    }
}

/* ============================================================
   Mobil alt menü (uygulama tarzı)
   ============================================================ */
.od-bottom-nav {
    display: none;
}

@media (max-width: 991.98px) {
    .od-bottom-nav {
        position: fixed;
        left: 0;
        right: 0;
        bottom: 0;
        z-index: var(--od-z-bottom-nav);
        display: flex;
        padding: .5rem .25rem calc(.5rem + env(safe-area-inset-bottom, 0px));
        background: var(--od-surface);
        border-top: 1px solid var(--od-line);
        box-shadow: 0 -.4rem 1.2rem rgba(15, 36, 38, .08);
    }

    .od-bottom-nav__item {
        flex: 1;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: .22rem;
        padding: .45rem .2rem;
        border-radius: var(--od-r-sm);
        color: var(--od-muted);
        font-size: .72rem;
        font-weight: 600;
        text-align: center;
    }

    .od-bottom-nav__item i {
        font-size: 1.45rem;
        line-height: 1;
    }

    .od-bottom-nav__item.is-active {
        color: var(--od-secondary);
    }

    .od-bottom-nav__item--primary {
        color: var(--od-secondary);
    }

    .od-bottom-nav__item--primary i {
        display: flex;
        align-items: center;
        justify-content: center;
        width: 3.4rem;
        height: 3.4rem;
        margin-top: -1.7rem;
        border: 3px solid var(--od-surface);
        border-radius: 50%;
        background: var(--od-primary);
        color: var(--od-on-primary);
        font-size: 1.55rem;
        box-shadow: var(--od-shadow-primary);
    }

    /* İçerik alt menünün altında kalmasın */
    body {
        padding-bottom: 5.2rem;
    }
}
