/**
 * Modern header (header-1) — 3 katlı: üst şerit, ana bar, menü barı.
 * Menü kendi tam-genişlik satırında olduğu için öğeler asla sıkışmaz.
 */

.hdr { position: relative; z-index: 100; background: #fff; }

/* ---------------------------------------------------------------
   1) Üst şerit
   --------------------------------------------------------------- */
.hdr-top {
    background: #16181d;
    color: #b6bcc6;
    font-size: 12.5px;
}
.hdr-top__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 38px;
}
.hdr-top__left { display: flex; align-items: center; gap: 18px; }
.hdr-top__date i { color: var(--primary-color, #d32f2f); margin-right: 5px; }

/* Hava rozeti (weather-badge partial) üst şeritte */
.hdr-top .breaking-weather { display: inline-flex; align-items: center; gap: 5px; color: #cfd4dc; }
.hdr-top .breaking-weather i { color: #f5b642; }

.hdr-top__right { display: flex; align-items: center; gap: 4px; }
.hdr-top__right a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px; height: 28px;
    border-radius: 50%;
    color: #b6bcc6;
    transition: background .15s, color .15s;
}
.hdr-top__right a:hover { background: rgba(255,255,255,.12); color: #fff; }

/* ---------------------------------------------------------------
   2) Ana bar
   --------------------------------------------------------------- */
.hdr-main { background: #fff; border-bottom: 1px solid #ececf0; }
.hdr-main__inner {
    display: flex;
    align-items: center;
    gap: 20px;
    height: 78px;
}

.hdr-burger {
    display: none;
    background: none;
    border: 0;
    font-size: 22px;
    color: #222;
    cursor: pointer;
    padding: 4px 8px;
}

.hdr-logo { flex-shrink: 0; }
.hdr-logo img, .hdr-logo .custom-logo { max-height: 52px; width: auto; display: block; }
.hdr-logo__text {
    font-size: 30px;
    font-weight: 900;
    letter-spacing: -.5px;
    color: var(--primary-color, #d32f2f);
    text-decoration: none;
    line-height: 1;
}

/* Logo yanı banner reklam */
.hdr-banner { flex: 0 1 auto; min-width: 0; }
.hdr-banner:empty { display: none; }
.hdr-banner .ad-area { margin: 0; }
.hdr-banner .ad-label { display: none; }
.hdr-banner img { max-height: 90px; width: auto; }
@media (max-width: 992px) { .hdr-banner { display: none; } }

.hdr-actions { margin-left: auto; display: flex; align-items: center; gap: 14px; }

.hdr-search {
    display: flex;
    align-items: center;
    background: #f2f3f5;
    border: 1px solid transparent;
    border-radius: 24px;
    overflow: hidden;
    transition: border-color .15s, background .15s;
    width: 260px;
    max-width: 40vw;
}
.hdr-search:focus-within { background: #fff; border-color: var(--primary-color, #d32f2f); }
.hdr-search input {
    flex: 1;
    min-width: 0;
    border: 0;
    background: transparent;
    padding: 11px 16px;
    font-size: 14px;
    outline: none;
}
.hdr-search button {
    border: 0;
    background: none;
    color: #888;
    padding: 0 16px;
    font-size: 15px;
    cursor: pointer;
    align-self: stretch;
}
.hdr-search button:hover { color: var(--primary-color, #d32f2f); }

.hdr-hesap {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 18px;
    background: var(--primary-color, #d32f2f);
    color: #fff;
    border-radius: 24px;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    white-space: nowrap;
    transition: filter .15s;
}
.hdr-hesap:hover { filter: brightness(1.08); color: #fff; }

/* ---------------------------------------------------------------
   3) Menü barı — kendi satırında
   --------------------------------------------------------------- */
.hdr-nav { background: var(--primary-color, #d32f2f); }
/* main.js kaydırınca #mainNav.sticky-nav öğesine .fixed ekler */
.hdr-nav.sticky-nav.fixed {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 999;
    box-shadow: 0 2px 12px rgba(0,0,0,.18);
    animation: hdrNavIn .25s ease;
}
@keyframes hdrNavIn { from { transform: translateY(-100%); } to { transform: translateY(0); } }
.hdr-nav__inner {
    display: flex;
    align-items: stretch;
    gap: 0;
}
.hdr-nav__home {
    display: inline-flex;
    align-items: center;
    padding: 0 16px;
    color: #fff;
    background: rgba(0,0,0,.12);
    font-size: 15px;
    text-decoration: none;
    transition: background .15s;
}
.hdr-nav__home:hover { background: rgba(0,0,0,.22); color: #fff; }

.hdr-menu {
    display: flex;
    align-items: stretch;
    list-style: none;
    margin: 0;
    padding: 0;
    flex-wrap: nowrap;
    overflow-x: auto;
    scrollbar-width: none;
}
.hdr-menu::-webkit-scrollbar { display: none; }

.hdr-menu > li { position: relative; }
.hdr-menu > li > a {
    display: flex;
    align-items: center;
    height: 48px;
    padding: 0 18px;
    color: #fff;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    white-space: nowrap;
    transition: background .15s;
}
.hdr-menu > li > a:hover,
.hdr-menu > li:hover > a,
.hdr-menu > li.current-menu-item > a,
.hdr-menu > li.current-cat > a { background: rgba(0,0,0,.18); }

/* Alt menü oku */
.hdr-menu > li.menu-item-has-children > a::after {
    content: '\f107';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    font-size: 11px;
    margin-left: 7px;
    opacity: .8;
}

/* Açılır alt menü */
.hdr-menu .sub-menu {
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 210px;
    background: #fff;
    list-style: none;
    margin: 0;
    padding: 6px 0;
    box-shadow: 0 10px 30px rgba(0,0,0,.14);
    border-radius: 0 0 8px 8px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(6px);
    transition: opacity .15s, transform .15s, visibility .15s;
    z-index: 50;
}
.hdr-menu > li:hover > .sub-menu { opacity: 1; visibility: visible; transform: translateY(0); }
.hdr-menu .sub-menu li a {
    display: block;
    padding: 10px 18px;
    color: #333;
    font-size: 13.5px;
    text-decoration: none;
    transition: background .12s, color .12s;
}
.hdr-menu .sub-menu li a:hover { background: #f5f6f8; color: var(--primary-color, #d32f2f); }

/* ---------------------------------------------------------------
   Son dakika barı
   --------------------------------------------------------------- */
.hdr-breaking { background: #fff; border-bottom: 1px solid #ececf0; }
.hdr-breaking__inner { display: flex; align-items: center; height: 44px; gap: 14px; }
.hdr-breaking__label {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    flex-shrink: 0;
    background: var(--primary-color, #d32f2f);
    color: #fff;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: .4px;
    padding: 6px 12px;
    border-radius: 4px;
}
.hdr-breaking__slider {
    flex: 1;
    min-width: 0;
    position: relative;
    height: 20px;
    overflow: hidden;
}
.hdr-breaking__item {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    opacity: 0;
    transform: translateY(100%);
    transition: opacity .4s, transform .4s;
}
.hdr-breaking__item.active { opacity: 1; transform: translateY(0); }
.hdr-breaking__item a {
    color: #222;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100%;
}
.hdr-breaking__item a:hover { color: var(--primary-color, #d32f2f); }
.hdr-breaking__nav { display: flex; gap: 4px; flex-shrink: 0; }
.hdr-breaking__btn {
    width: 28px; height: 28px;
    border: 1px solid #e0e0e0;
    background: #fff;
    border-radius: 6px;
    color: #666;
    cursor: pointer;
    font-size: 11px;
    transition: all .12s;
}
.hdr-breaking__btn:hover { border-color: var(--primary-color, #d32f2f); color: var(--primary-color, #d32f2f); }

/* ---------------------------------------------------------------
   Responsive
   --------------------------------------------------------------- */
@media (max-width: 992px) {
    .hdr-nav { display: none; }          /* menü mobilde kenar çubuğunda */
    .hdr-burger { display: inline-flex; }
    .hdr-main__inner { height: 64px; gap: 12px; }
    .hdr-logo { margin-right: auto; }
    .hdr-logo img, .hdr-logo .custom-logo { max-height: 40px; }
    .hdr-logo__text { font-size: 24px; }
    .hdr-hesap span { display: none; }   /* mobilde sadece ikon */
    .hdr-hesap { padding: 10px 12px; }
}

@media (max-width: 640px) {
    .hdr-top__date { font-size: 11.5px; }
    .hdr-top__left .breaking-weather { display: none; }
    .hdr-search { width: auto; }
    .hdr-search input { width: 130px; }
    .hdr-breaking__label span { display: none; }
}

@media (max-width: 480px) {
    .hdr-top__date { display: none; }
    .hdr-search { display: none; }       /* aramaya kenar menüden erişilir */
}
