/* ═══════════════════════════════════════════════════════════
   FEDERASYON — HEADER V2 (sıfırdan modern, standalone)
   ═══════════════════════════════════════════════════════════ */

.hdr2 {
    --red: #e31e26;
    --red-2: #ff4a50;
    --navy: #14143a;
    --navy-2: #232357;
    --ink: #1d1d28;
    --line: #ebecf2;
    font-family: 'Poppins', system-ui, sans-serif;
    position: relative;
    z-index: 1000;
}
.hdr2 * { box-sizing: border-box; }
.hdr2 a { text-decoration: none; }

/* ─── Üst bar ─── */
.hdr2-top {
    background: var(--navy);
    color: #fff;
    font-size: 13px;
}
.hdr2-top__in {
    max-width: 1320px; margin: 0 auto; padding: 9px 24px;
    display: flex; align-items: center; justify-content: space-between; gap: 16px;
}
.hdr2-top__left { display: flex; align-items: center; gap: 22px; opacity: .92; }
.hdr2-top__left a { color: #fff; display: inline-flex; align-items: center; gap: 7px; transition: color .2s; }
.hdr2-top__left a:hover { color: var(--red-2); }
.hdr2-top__left i { color: var(--red-2); }
.hdr2-top__right { display: flex; align-items: center; gap: 14px; }
.hdr2-sbs {
    display: inline-flex; align-items: center; gap: 8px;
    background: var(--red); color: #fff; padding: 6px 16px; border-radius: 30px;
    font-weight: 600; transition: all .25s;
}
.hdr2-sbs:hover { background: var(--red-2); color: #fff; transform: translateY(-1px); }
.hdr2-social { display: flex; gap: 8px; }
.hdr2-social a {
    width: 30px; height: 30px;
    display: inline-flex; align-items: center; justify-content: center;
    border-radius: 8px;
    background: rgba(255,255,255,.08);
    color: rgba(255,255,255,.8);
    font-size: 13px;
    transition: all .25s ease;
}
.hdr2-social a:hover { background: var(--red); color: #fff; transform: translateY(-2px); }

/* Ana bar her zaman sticky (aşağı inince de görünür) */
.hdr2-main {
    background: #fff;
    box-shadow: 0 2px 20px rgba(20,20,55,.06);
    position: sticky; top: 0; z-index: 990;
}

/* ─── Ana bar ─── */
.hdr2-main {
    background: #fff;
    box-shadow: 0 2px 20px rgba(20,20,55,.06);
    position: sticky; top: 0; z-index: 990;
}
.hdr2-main__in {
    max-width: 1320px; margin: 0 auto; padding: 0 24px;
    display: flex; align-items: center; justify-content: space-between; gap: 20px;
    height: 100px;
}
.hdr2-logo img { height: 75px; width: auto; }

/* ─── Menü ─── */
.hdr2-nav { display: flex; align-items: center; }
.hdr2-menu { display: flex; align-items: center; gap: 4px; list-style: none; margin: 0; padding: 0; }
.hdr2-menu > li { position: relative; }
.hdr2-menu > li > a {
    display: inline-flex; align-items: center; gap: 5px;
    padding: 12px 15px; font-size: 14.5px; font-weight: 600; color: var(--ink);
    border-radius: 10px; transition: all .2s;
}
.hdr2-menu > li > a:hover,
.hdr2-menu > li.is-open > a { color: var(--red); background: rgba(227,30,38,.06); }
.hdr2-menu > li > a .caret { font-size: 10px; opacity: .6; transition: transform .2s; }
.hdr2-menu > li:hover > a .caret { transform: rotate(180deg); }

/* Dropdown */
.hdr2-menu .sub {
    position: absolute; top: calc(100% + 6px); left: 0; min-width: 230px;
    background: #fff; border-radius: 14px; box-shadow: 0 18px 50px rgba(20,20,55,.16);
    border: 1px solid var(--line); padding: 8px; list-style: none; margin: 0;
    opacity: 0; visibility: hidden; transform: translateY(10px);
    transition: all .25s ease; z-index: 50;
}
.hdr2-menu > li:hover > .sub { opacity: 1; visibility: visible; transform: translateY(0); }
.hdr2-menu .sub li { position: relative; }
.hdr2-menu .sub a {
    display: flex; align-items: center; justify-content: space-between;
    padding: 10px 14px; font-size: 13.5px; font-weight: 500; color: var(--ink);
    border-radius: 9px; transition: all .18s;
}
.hdr2-menu .sub a:hover { background: var(--navy); color: #fff; }
/* 2. seviye */
.hdr2-menu .sub .sub {
    top: -8px; left: calc(100% + 6px);
}
.hdr2-menu .sub li:hover > .sub { opacity: 1; visibility: visible; transform: translateY(0); }

/* CTA + mobil tetikleyici */
.hdr2-actions { display: flex; align-items: center; gap: 12px; }
.hdr2-burger {
    display: none; width: 46px; height: 46px; border-radius: 12px;
    border: 1.5px solid var(--line); background: #fff; cursor: pointer;
    align-items: center; justify-content: center; flex-direction: column; gap: 4px;
}
.hdr2-burger span { width: 20px; height: 2px; background: var(--navy); border-radius: 2px; transition: all .25s; }

/* ─── Mobil ─── */
.hdr2-mobile {
    position: fixed; inset: 0; background: rgba(0,0,0,.5); z-index: 9998;
    opacity: 0; visibility: hidden; transition: all .3s;
}
.hdr2-mobile.open { opacity: 1; visibility: visible; }
.hdr2-mobile__panel {
    position: absolute; top: 0; right: 0; width: 86%; max-width: 360px; height: 100%;
    background: #fff; box-shadow: -10px 0 40px rgba(0,0,0,.2);
    transform: translateX(100%); transition: transform .3s ease;
    display: flex; flex-direction: column; overflow-y: auto;
}
.hdr2-mobile.open .hdr2-mobile__panel { transform: translateX(0); }
.hdr2-mobile__head {
    display: flex; align-items: center; justify-content: space-between;
    padding: 18px 20px; border-bottom: 1px solid var(--line);
}
.hdr2-mobile__head img { height: 44px; }
.hdr2-mobile__close { width: 40px; height: 40px; border: none; background: var(--navy); color: #fff; border-radius: 10px; font-size: 20px; cursor: pointer; }
.hdr2-mobile__menu { list-style: none; margin: 0; padding: 12px; }
.hdr2-mobile__menu li { border-bottom: 1px solid var(--line); }
.hdr2-mobile__menu > li > a,
.hdr2-mobile__menu .m-toggle {
    display: flex; align-items: center; justify-content: space-between;
    padding: 14px 12px; font-size: 15px; font-weight: 600; color: var(--ink);
    cursor: pointer;
}
.hdr2-mobile__menu .m-sub { list-style: none; margin: 0; padding: 0 0 6px 14px; display: none; }
.hdr2-mobile__menu li.open > .m-sub { display: block; }
.hdr2-mobile__menu .m-sub a { padding: 11px 12px; font-size: 14px; font-weight: 500; color: #555; display: block; }
.hdr2-mobile__menu .m-toggle .caret { transition: transform .2s; }
.hdr2-mobile__menu li.open > .m-toggle .caret { transform: rotate(180deg); }

@media (max-width: 1100px) {
    .hdr2-nav .hdr2-menu { display: none; }
    .hdr2-burger { display: flex; }
}
@media (max-width: 600px) {
    .hdr2-top__left { gap: 12px; font-size: 12px; }
    .hdr2-top__left .hdr2-addr { display: none; }
    .hdr2-main__in { height: 70px; }
    .hdr2-logo img { height: 46px; }
}

/* ============================================================
   MOBİL header düzeltmeleri
   ============================================================ */
@media (max-width: 768px) {
    /* Topbar: tel ve mail gizle, sadece sosyal */
    .hdr2-top__left { display: none !important; }
    .hdr2-top__in { justify-content: center; }
    .hdr2-top__right { width: 100%; justify-content: center; }

    /* SBS butonu kısalt (SBS) */
    .hdr2-sbs { padding: 7px 12px; font-size: 11px; gap: 5px; }
    .hdr2-sbs .hdr2-sbs-full { display: inline; }
    .hdr2-sbs .hdr2-sbs-short { display: none; }

    /* Aksiyonlar sıkışmasın */
    .hdr2-actions { gap: 8px; }
}
@media (min-width: 769px) {
    .hdr2-sbs .hdr2-sbs-short { display: none; }
    .hdr2-sbs .hdr2-sbs-full { display: inline; }
}
