/* ─────────────────────────────────────────────────────────────────────────
   top-header1 — header-top barı static stilleri.
   Daha önce site-parts/body-parts/top-header1.php içinde inline <style>
   bloklarıydı; HTML cache boyutunu küçültmek ve mobilde FOUC / layout shift
   yaratmamak için harici dosyaya çıkarıldı. Renkler/fontlar CSS değişkenleri
   ve mevcut Riode tema sınıfları üzerinden geldiğinden static tutulabilir.
   ───────────────────────────────────────────────────────────────────────── */

/* Header-top kendi stacking context'i. overflow:hidden / contain:paint
   kasıtlı YOKTUR — dropdown-box aşağıya uzanır, parent clip'i tarafından
   kesilmemesi gerekir. Marquee kırpması header-left'in kendi overflow:hidden'ı
   ile zaten sağlanıyor. */
.header-top#top_header {
    position: relative;
    z-index: 1000;
    background-color: #fff;
}
.header-top#top_header .header-left {
    position: relative;
    overflow: hidden;
    min-width: 0;
}

/* Sol/Sağ linkler arası dikey ayraç */
.header-left .dropdown-expanded .dropdown-box .top-link-divider,
.dropdown-expanded .dropdown-box .top-link-divider {
    width: 1px;
    height: 14px;
    background-color: rgba(0, 0, 0, 0.12);
    align-self: center;
    margin: 0 0.75rem;
    list-style: none;
    padding: 0;
}

/* Rotating notify (header-notify) — desktop fade/slide */
.header-notify {
    display: grid;
    grid-template-columns: minmax(0, max-content);
    overflow: hidden;
    position: relative;
    vertical-align: middle;
    min-height: 1.4em;
    line-height: 1.4em;
    max-width: 100%;
    min-width: 0;
}
.header-notify .notify-item {
    grid-row: 1;
    grid-column: 1;
    position: static !important;
    white-space: nowrap;
    transform: translateY(100%);
    transition: transform 0.5s ease, opacity 0.5s ease;
    opacity: 0;
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
}
.header-notify .notify-item.active {
    transform: translateY(0);
    opacity: 1;
}
.header-notify .notify-item.exit {
    transform: translateY(-100%);
    opacity: 0;
}
.header-notify .notify-item i {
    display: inline-block;
    vertical-align: middle;
}

/* Mobil marquee — sağdan sola yatay kayma */
#thMobMarquee {
    display: none;
    overflow: hidden;
    width: 100%;
    margin: 0;
    padding: 0;
    line-height: 1;
    align-self: center;
    position: relative;
    min-width: 0;
    max-width: 100%;
    flex: 1 1 0;
    height: 1.4em;
}
#thMobMarquee > span {
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    display: inline-flex;
    align-items: center;
    white-space: nowrap;
    will-change: transform;
}
#thMobMarquee > span > i {
    display: inline-flex;
    align-items: center;
}
#thMobMarquee > span > i > span {
    position: static;
    display: inline;
}

@media (max-width: 767px) {
    .header-notify { display: none !important; }
    #thMobMarquee { display: block; }
    /* Riode app.css mobilde .header-top'u display:block yapıyor → header-left
       (marquee) ile header-right (dropdownlar) alt alta diziliyor.
       Tek satıra geri zorla. */
    .header-top#top_header {
        display: flex !important;
        flex-wrap: nowrap;
        align-items: center;
    }
    .header-top#top_header .container {
        display: flex;
        flex-wrap: nowrap;
        align-items: center;
        width: 100%;
    }
    .header-top#top_header .header-left {
        flex: 1 1 0;
        min-width: 0;
        margin-right: 1rem;
    }
    .header-top#top_header .header-right {
        flex: 0 0 auto;
        margin-left: auto;
    }
}

/* Social icons arasındaki dikey ayraç */
.social-icons .top-social-divider {
    display: inline-block;
    width: 1px;
    height: 14px;
    background-color: rgba(0, 0, 0, 0.12);
    margin: 0 0.25rem;
    align-self: center;
}

/* Dil + Translate dropdown'larında bayrak hizalama */
.top-lang-dropdown .top-lang-flag {
    display: inline-block;
    width: 20px;
    height: 14px;
    object-fit: cover;
    border-radius: 2px;
    margin-right: 0.4rem;
    vertical-align: middle;
}
.top-lang-dropdown .dropdown-box li a {
    display: flex;
    align-items: center;
}
.top-lang-dropdown .dropdown-box li a .top-lang-flag {
    flex-shrink: 0;
}
