/**
 * YON — topbar referans (ItemSatis tarzı)
 * Scope: .yon-site-topbar--ref inside .yon-shell--yon
 */

.yon-shell.yon-shell--yon {
    --yn-topbar-h: 40px;
    --yn-topbar-social: 30px;
}

.yon-shell.yon-shell--yon .yon-site-topbar--ref {
    position: relative;
    z-index: 4;
    background: #12121e !important;
    border-bottom: 1px solid #1a1d2b !important;
    box-shadow: none !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    overflow: visible !important;
}

.yon-shell.yon-shell--yon .yon-site-topbar--ref::after {
    display: none !important;
}

.yon-shell.yon-shell--yon .yon-site-topbar--ref .yon-site-topbar__inner,
.yon-shell.yon-shell--yon .yon-site-topbar--ref .yon-site-topbar__inner--yon {
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    justify-content: space-between !important;
    width: 100% !important;
    height: var(--yn-topbar-h) !important;
    min-height: var(--yn-topbar-h) !important;
    max-width: min(1680px, 100%) !important;
    margin: 0 auto !important;
    padding: 0 clamp(12px, 1.4vw, 18px) !important;
    gap: 16px !important;
    box-sizing: border-box !important;
}

.yon-shell.yon-shell--yon .yon-site-topbar--ref .yon-site-topbar__left,
.yon-shell.yon-shell--yon .yon-site-topbar--ref .yon-site-topbar__right {
    display: flex !important;
    align-items: center !important;
    min-width: 0 !important;
    background: transparent !important;
    border: none !important;
    border-radius: 0 !important;
    padding: 0 !important;
    backdrop-filter: none !important;
    box-shadow: none !important;
}

.yon-shell.yon-shell--yon .yon-site-topbar--ref .yon-site-topbar__left {
    gap: 10px !important;
    flex: 1 1 auto !important;
    overflow: hidden !important;
}

.yon-shell.yon-shell--yon .yon-site-topbar--ref .yon-site-topbar__right {
    gap: 0 !important;
    flex-shrink: 0 !important;
    overflow: visible !important;
    position: relative;
    z-index: 1;
}

/* Sosyal ikonlar — eşit kare, referans gradient */
.yon-shell.yon-shell--yon .yon-site-topbar--ref .yon-site-topbar__social {
    display: flex !important;
    align-items: center !important;
    gap: 4px !important;
    flex-shrink: 0 !important;
}

.yon-shell.yon-shell--yon .yon-site-topbar--ref .yon-social {
    width: var(--yn-topbar-social) !important;
    height: var(--yn-topbar-social) !important;
    min-width: var(--yn-topbar-social) !important;
    min-height: var(--yn-topbar-social) !important;
    border-radius: 4px !important;
    border: none !important;
    color: #fff !important;
    font-size: 15px !important;
    display: inline-grid !important;
    place-items: center !important;
    text-decoration: none !important;
    flex-shrink: 0 !important;
    transition: filter 0.15s ease, transform 0.15s ease !important;
}

.yon-shell.yon-shell--yon .yon-site-topbar--ref .yon-social:hover {
    filter: brightness(1.12);
    transform: translateY(-1px);
}

.yon-shell.yon-shell--yon .yon-site-topbar--ref .yon-social--discord {
    background: linear-gradient(135deg, #1a4d35 0%, #2d7a52 100%) !important;
}

.yon-shell.yon-shell--yon .yon-site-topbar--ref .yon-social--instagram {
    background: linear-gradient(135deg, #4a1a2a 0%, #7a2a3a 100%) !important;
}

.yon-shell.yon-shell--yon .yon-site-topbar--ref .yon-social--youtube {
    background: linear-gradient(135deg, #4a1a1a 0%, #7a2a2a 100%) !important;
}

.yon-shell.yon-shell--yon .yon-site-topbar--ref .yon-social--x {
    background: linear-gradient(135deg, #3d3d1a 0%, #5a5a2d 100%) !important;
}

.yon-shell.yon-shell--yon .yon-site-topbar--ref .yon-social--facebook {
    background: linear-gradient(135deg, #1a2a4a 0%, #2a3d6b 100%) !important;
}

.yon-shell.yon-shell--yon .yon-site-topbar--ref .yon-social--tiktok {
    background: linear-gradient(135deg, #1a1a2a 0%, #2d2d4a 100%) !important;
}

.yon-shell.yon-shell--yon .yon-site-topbar--ref .yon-social--default {
    background: color-mix(in srgb, var(--h-bg-raised) 90%, #000) !important;
    color: var(--h-text) !important;
}

.yon-shell.yon-shell--yon .yon-site-topbar--ref .yon-social[href="#"] {
    cursor: default;
    opacity: 0.92;
}

/* Duyuru */.yon-shell.yon-shell--yon .yon-site-topbar--ref .yon-site-topbar__announce {
    display: flex !important;
    align-items: center !important;
    gap: 12px !important;
    min-width: 0 !important;
    overflow: hidden !important;
}

.yon-shell.yon-shell--yon .yon-site-topbar--ref .yon-topbar-announce__btn {
    display: inline-flex !important;
    align-items: center !important;
    gap: 7px !important;
    height: 28px !important;
    padding: 0 12px !important;
    border-radius: 5px !important;
    border: none !important;
    background: #1e4d3a !important;
    color: #fff !important;
    font-size: 12px !important;
    font-weight: 700 !important;
    white-space: nowrap !important;
    text-decoration: none !important;
    flex-shrink: 0 !important;
    transition: filter 0.15s ease !important;
}

.yon-shell.yon-shell--yon .yon-site-topbar--ref .yon-topbar-announce__btn:hover {
    filter: brightness(1.1);
}

.yon-shell.yon-shell--yon .yon-site-topbar--ref .yon-topbar-announce__btn i {
    font-size: 14px !important;
}

.yon-shell.yon-shell--yon .yon-site-topbar--ref .yon-topbar-announce__text {
    margin: 0 !important;
    font-size: 12.5px !important;
    font-weight: 500 !important;
    color: #e8e9f0 !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
}

/* Sağ linkler — eşit yükseklik */
.yon-shell.yon-shell--yon .yon-site-topbar--ref .yon-topbar-link,
.yon-shell.yon-shell--yon .yon-site-topbar--ref .yon-topbar-drop__trigger {
    display: inline-flex !important;
    align-items: center !important;
    gap: 6px !important;
    height: var(--yn-topbar-h) !important;
    padding: 0 13px !important;
    border: none !important;
    background: transparent !important;
    color: #fff !important;
    font-size: 12.5px !important;
    font-weight: 600 !important;
    white-space: nowrap !important;
    text-decoration: none !important;
    cursor: pointer;
    transition: background 0.14s ease, color 0.14s ease !important;
}

.yon-shell.yon-shell--yon .yon-site-topbar--ref .yon-topbar-link i,
.yon-shell.yon-shell--yon .yon-site-topbar--ref .yon-topbar-drop__trigger i {
    font-size: 15px !important;
}

/* Alım İlanları — turuncu (referans) */
.yon-shell.yon-shell--yon .yon-site-topbar--ref .yon-topbar-link--purple,
.yon-shell.yon-shell--yon .yon-site-topbar--ref .yon-topbar-link--orange {
    color: #ff9f2e !important;
}

.yon-shell.yon-shell--yon .yon-site-topbar--ref .yon-topbar-link--purple i,
.yon-shell.yon-shell--yon .yon-site-topbar--ref .yon-topbar-link--orange i {
    color: #fff !important;
}

/* Blog — açık mavi */
.yon-shell.yon-shell--yon .yon-site-topbar--ref .yon-topbar-link--cyan {
    color: #5eb8ff !important;
}

.yon-shell.yon-shell--yon .yon-site-topbar--ref .yon-topbar-link:hover,
.yon-shell.yon-shell--yon .yon-site-topbar--ref .yon-topbar-drop__trigger:hover,
.yon-shell.yon-shell--yon .yon-site-topbar--ref .yon-topbar-drop.is-open .yon-topbar-drop__trigger {
    background: #25293d !important;
    color: #fff !important;
}

.yon-shell.yon-shell--yon .yon-site-topbar--ref .yon-topbar-link--register {
    color: var(--h-green) !important;
}

.yon-shell.yon-shell--yon .yon-site-topbar--ref .yon-topbar-link--login {
    color: var(--h-blue-text) !important;
}

/* Dropdown */
.yon-shell.yon-shell--yon .yon-site-topbar--ref .yon-topbar-drop {
    position: relative !important;
}

.yon-shell.yon-shell--yon .yon-site-topbar--ref .yon-topbar-drop.is-open {
    z-index: var(--yn-overlay-wrap, 10060) !important;
}

.yon-shell.yon-shell--yon .yon-site-topbar--ref .yon-topbar-drop__chev {
    font-size: 15px !important;
    opacity: 0.85;
    margin-left: 2px !important;
}

.yon-shell.yon-shell--yon .yon-site-topbar--ref .yon-topbar-drop__panel {
    position: absolute !important;
    top: 100% !important;
    left: 0 !important;
    min-width: 220px !important;
    padding: 6px 0 !important;
    background: #1a1d2b !important;
    border: 1px solid #25293d !important;
    border-radius: 0 0 6px 6px !important;
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.45) !important;
    z-index: var(--yn-overlay-panel, 10070) !important;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateY(4px);
    transition: opacity 0.14s ease, transform 0.14s ease, visibility 0.14s ease !important;
}

.yon-shell.yon-shell--yon .yon-site-topbar--ref .yon-topbar-drop.is-open .yon-topbar-drop__panel {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateY(0);
}

.yon-shell.yon-shell--yon .yon-site-topbar--ref .yon-topbar-drop__item {
    display: flex !important;
    align-items: center !important;
    gap: 10px !important;
    padding: 10px 14px !important;
    color: #fff !important;
    font-size: 12.5px !important;
    font-weight: 500 !important;
    text-decoration: none !important;
    transition: background 0.12s ease !important;
}

.yon-shell.yon-shell--yon .yon-site-topbar--ref .yon-topbar-drop__item i {
    font-size: 15px !important;
    opacity: 0.9;
    width: 18px;
    text-align: center;
}

.yon-shell.yon-shell--yon .yon-site-topbar--ref .yon-topbar-drop__item:hover {
    background: #25293d !important;
}

/* Dil */
.yon-shell.yon-shell--yon .yon-site-topbar--ref .yon-topbar-meta {
    display: inline-flex !important;
    align-items: center !important;
    gap: 6px !important;
    height: var(--yn-topbar-h) !important;
    padding: 0 12px !important;
    border: none !important;
    background: transparent !important;
    color: #fff !important;
    font-size: 12.5px !important;
    font-weight: 600 !important;
    cursor: pointer;
}

.yon-shell.yon-shell--yon .yon-site-topbar--ref .yon-topbar-meta:hover {
    background: #25293d !important;
}

/* TRY + ay */
.yon-shell.yon-shell--yon .yon-site-topbar--ref .yon-topbar-currency {
    display: inline-flex !important;
    align-items: center !important;
    gap: 7px !important;
    height: var(--yn-topbar-h) !important;
    padding: 0 14px 0 12px !important;
    color: #fff !important;
    font-size: 12.5px !important;
    font-weight: 700 !important;
}

.yon-shell.yon-shell--yon .yon-site-topbar--ref .yon-topbar-currency__moon {
    font-size: 14px !important;
    opacity: 0.9;
    line-height: 1;
}

@media (max-width: 1279px) {
    .yon-shell.yon-shell--yon .yon-site-topbar--ref .yon-topbar-announce__text {
        max-width: 280px !important;
    }
}

@media (max-width: 1099px) {
    .yon-shell.yon-shell--yon .yon-site-topbar--ref .yon-topbar-announce__text {
        display: none !important;
    }

    .yon-shell.yon-shell--yon .yon-site-topbar--ref .yon-topbar-meta span {
        display: none !important;
    }
}

@media (hover: none) {
    .yon-shell.yon-shell--yon .yon-site-topbar--ref .yon-social:hover {
        transform: none !important;
    }
}

/* Dropdown overlay */
body.yon-topbar-overlay-open .yon-shell.yon-shell--yon .yon-site-topbar--ref {
    z-index: calc(var(--yn-overlay-wrap, 10060) + 20) !important;
    overflow: visible !important;
}

body.yon-topbar-overlay-open .yon-shell.yon-shell--yon .yon-site-topbar--ref .yon-topbar-drop.is-open {
    z-index: calc(var(--yn-overlay-wrap, 10060) + 5) !important;
}

body.yon-topbar-overlay-open .yon-shell.yon-shell--yon .yon-site-topbar--ref .yon-topbar-drop.is-open .yon-topbar-drop__panel {
    z-index: var(--yn-overlay-panel, 10070) !important;
}

/* Dil / para birimi seçici */
.yon-pref-drop {
    position: relative;
    display: inline-flex;
}

.yon-pref-drop__trigger {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    height: var(--yn-topbar-h, 36px);
    padding: 0 12px;
    border: none;
    border-radius: 8px;
    background: transparent;
    color: #fff;
    font-size: 12.5px;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.12s ease;
}

.yon-pref-drop__trigger:hover,
.yon-pref-drop.is-open .yon-pref-drop__trigger {
    background: #25293d;
}

.yon-pref-drop__chev {
    font-size: 14px;
    opacity: 0.85;
}

.yon-pref-drop__panel {
    position: absolute;
    top: calc(100% + 6px);
    right: 0;
    min-width: 180px;
    padding: 6px;
    border-radius: 12px;
    background: #1f2333;
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.35);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-4px);
    transition: 0.15s ease;
    z-index: 120;
}

.yon-pref-drop.is-open .yon-pref-drop__panel {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.yon-pref-drop__item {
    width: 100%;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 9px 10px;
    border: none;
    border-radius: 8px;
    background: transparent;
    color: #e5e7eb;
    font-size: 12.5px;
    font-weight: 600;
    text-align: left;
    cursor: pointer;
}

.yon-pref-drop__item strong {
    min-width: 34px;
    font-size: 11px;
    letter-spacing: 0.04em;
}

.yon-pref-drop__item span {
    flex: 1;
    color: #9ca3af;
    font-weight: 500;
}

.yon-pref-drop__item i {
    margin-left: auto;
    color: var(--h-green, #34d399);
}

.yon-pref-drop__item:hover,
.yon-pref-drop__item.is-active {
    background: rgba(255, 255, 255, 0.06);
}

.yon-pref-drop--admin .yon-pref-drop__trigger {
    height: 38px;
    border: 1px solid var(--adm-border, rgba(255, 255, 255, 0.08));
    background: var(--adm-surface-2, rgba(255, 255, 255, 0.04));
    color: var(--adm-text, #f5f5f5);
}

.yon-pref-drop--admin .yon-pref-drop__panel {
    background: #1e1e1e;
    border-color: var(--adm-border, rgba(255, 255, 255, 0.08));
}
