/* ============================================================
   HEADER — VipLisans Design System katmanı
   ------------------------------------------------------------
   Sadece görünümü değiştirir; header.php / top-bar.php HTML'ine ve JS'ine
   dokunmaz. header-modern.css'ten SONRA yüklenir (includes/header.php sonu).

   GERİ ALMAK İÇİN: includes/header.php en altındaki
       $header_ds_enabled = true;
   satırını false yapın (ya da bu dosyayı silin). Header eski hâline döner.
   Karşılaştırma için herhangi bir sayfaya ?eski_header=1 ekleyebilirsiniz.
   ============================================================ */

:root {
    --hd-bg: #f3f3f1;
    --hd-card: #ffffff;
    --hd-soft: #f6f6f4;
    --hd-soft-2: #efefec;
    --hd-line: #e8e8e5;
    --hd-ink: #121212;
    --hd-muted: #6f6f6c;
    --hd-o: #ff6417;
    --hd-o-soft: #fff1e9;
    --hd-ease: cubic-bezier(0.23, 1, 0.32, 1);
}
html body.dark-mode {
    --hd-bg: #0a0a0a;
    --hd-card: #141414;
    --hd-soft: #1c1c1c;
    --hd-soft-2: #232323;
    --hd-line: rgba(255, 255, 255, 0.08);
    --hd-ink: #f2f2f2;
    --hd-muted: #8c8c8c;
    --hd-o-soft: rgba(255, 100, 23, 0.14);
}

/* ── Üst bilgi şeridi: sayfa zemininin tonunda, sade ───────── */
html body #top-bar-section {
    background: var(--hd-bg);
    border-bottom: 0;
}
html body .tb-item,
html body .tb-item span { color: var(--hd-muted); }
html body .tb-item strong { color: var(--hd-ink); font-weight: 600; }
html body .tb-item .tb-stars i { color: var(--hd-o); }
html body .tb-div { background: var(--hd-line); }
html body .tb-online {
    background: var(--hd-card);
    border: 1px solid var(--hd-line);
    border-radius: 999px;
    color: var(--hd-ink);
}
html body .tb-online:hover { background: var(--hd-card); border-color: #bfe7cc; color: var(--hd-ink); }

/* ── Ana header ───────────────────────────────────────────── */
html body header.main-header {
    background: var(--hd-card);
    border-bottom: 1px solid var(--hd-line);
}
@media (min-width: 992px) {
    html body header.main-header.is-scrolled {
        background: color-mix(in srgb, var(--hd-card) 88%, transparent);
        border-bottom-color: var(--hd-line);
        box-shadow: 0 12px 28px -22px rgba(0, 0, 0, 0.35);
    }
}

/* Hamburger: yuvarlak, ince kenarlı */
html body .menu-btn-hover {
    border-radius: 50% !important;
    background: var(--hd-card) !important;
    border: 1px solid var(--hd-line) !important;
    color: var(--hd-ink);
}
html body .menu-btn-hover:hover { background: var(--hd-soft) !important; border-color: var(--hd-line) !important; }

/* Arama: hap şekli, sağda turuncu yuvarlak buton */
html body .search-wrapper .search-input-custom {
    height: 52px !important;
    border-radius: 999px !important;
    background: var(--hd-soft) !important;
    border: 1px solid transparent !important;
    padding-left: 24px !important;
    padding-right: 64px !important;
    color: var(--hd-ink);
}
html body .search-wrapper .search-input-custom::placeholder { color: #9a9a96; }
html body .search-wrapper .search-input-custom:hover { background: var(--hd-soft-2) !important; }
html body .search-wrapper .search-input-custom:focus {
    background: var(--hd-card) !important;
    border-color: var(--hd-o) !important;
    box-shadow: 0 0 0 4px rgba(255, 100, 23, 0.12) !important;
}
html body .search-wrapper button[type="submit"] {
    width: 42px;
    height: 42px;
    margin-right: 5px !important;
    border-radius: 50% !important;
    background: var(--hd-o) !important;
    box-shadow: 0 8px 18px -8px rgba(255, 100, 23, 0.8);
}
html body .search-wrapper button[type="submit"]:hover { background: #f05a0e !important; }

/* Aksiyonlar: yuvarlak, ince kenarlı kutular */
html body .hdr-action-box {
    border-radius: 50% !important;
    background: var(--hd-card);
    box-shadow: inset 0 0 0 1px var(--hd-line);
    color: var(--hd-ink);
}
html body .hdr-action:hover .hdr-action-box { background: var(--hd-soft); box-shadow: inset 0 0 0 1px var(--hd-line); }
html body .hdr-action-label { color: var(--hd-muted); font-weight: 500; }
html body .hdr-action:hover .hdr-action-label { color: var(--hd-ink); }
html body .hdr-action.campaign .hdr-action-box { background: var(--hd-o-soft); box-shadow: none; }
html body .hdr-action.campaign:hover .hdr-action-box { background: #ffe2d1; }
html body .hdr-action.login-btn .hdr-action-box {
    background: var(--hd-ink);
    color: #fff;
    box-shadow: 0 8px 18px -10px rgba(0, 0, 0, 0.6);
}
html body .hdr-action.login-btn:hover .hdr-action-box { background: #2a2a2a; }
html body.dark-mode .hdr-action.login-btn .hdr-action-box { background: #fff; color: #111; }
html body .notification-badge,
html body .modern-cart-badge { background: var(--hd-o); box-shadow: 0 0 0 2px var(--hd-card); }

html body .notification-dropdown,
html body .hdr-actions .dropdown-menu {
    border: 1px solid var(--hd-line) !important;
    border-radius: 20px !important;
    background: var(--hd-card);
}

/* ── Menü satırı ──────────────────────────────────────────── */
html body .main-menu {
    background: var(--hd-card);
    border-top: 0;
    border-bottom: 1px solid var(--hd-line) !important;
    padding: 10px 0;
}
html body div.main-menu a.menu-link {
    padding: 9px 15px;
    border-radius: 999px;
    color: var(--hd-ink);
}
html body .main-menu .menu-link:hover { background: var(--hd-soft); color: var(--hd-ink); }
/* Aktif sayfa: yumuşak gri hap (sert siyah yerine) */
html body .main-menu .menu-link.active,
html body .main-menu .menu-link.active:hover {
    background: var(--hd-soft-2);
    color: var(--hd-ink);
    box-shadow: none;
    font-weight: 500;
}
html body.dark-mode .main-menu .menu-link.active { background: var(--hd-soft-2); color: var(--hd-ink); }

/* Sosyal: yuvarlak, kendi renginde dolgu */
html body .hdr-social-group { gap: 8px; }
html body .hdr-social-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    color: #fff;
    font-size: 1.05rem;
    background: var(--sm-color, var(--hd-ink));
    box-shadow: 0 8px 18px -10px var(--sm-color, rgba(0,0,0,.5));
    filter: none;
}
html body .hdr-social-btn[aria-label="Instagram"] {
    background: linear-gradient(135deg, #f9a03f 0%, #f56040 30%, #e1306c 65%, #c13584 100%);
    box-shadow: 0 8px 18px -10px rgba(225, 48, 108, 0.8);
}
html body .hdr-social-btn[aria-label="WhatsApp"] { background: #22c55e; box-shadow: 0 8px 18px -10px rgba(22, 163, 74, 0.8); }
html body .hdr-social-btn:hover { color: #fff !important; filter: brightness(1.06); }

/* VIP PLUS'a Katıl: turuncu hap (site CTA'larıyla aynı) */
html body .main-menu .vip-btn {
    height: 42px;
    border-radius: 999px !important;
    padding: 0 16px 0 6px;
    background: var(--hd-o);
    box-shadow: 0 10px 22px -10px rgba(255, 100, 23, 0.85);
}
html body .main-menu .vip-btn:hover { background: #f05a0e; filter: none; }
html body .main-menu .vip-btn > i.fa-crown { border-radius: 50%; width: 30px; height: 30px; }

/* Plus paneline git: beyaz hap, ince kenar */
html body .plus-panel-btn {
    border-radius: 999px !important;
    background: var(--hd-card) !important;
    border: 1px solid var(--hd-line) !important;
    box-shadow: none !important;
}
html body .plus-panel-btn::before,
html body .plus-panel-btn__shine { display: none !important; }
html body .plus-panel-btn:hover { background: var(--hd-soft) !important; transform: none !important; }
html body .plus-panel-btn__text { color: var(--hd-ink) !important; }

/* Kampanya Paylaşımları (Plus üyeleri): yumuşak turuncu hap */
html body .plus-campaigns-nav-btn {
    border-radius: 999px !important;
    background: var(--hd-o-soft) !important;
    border: 0 !important;
    box-shadow: none !important;
    color: var(--hd-o) !important;
}
html body .plus-campaigns-nav-btn::before,
html body .plus-campaigns-nav-btn__shine { display: none !important; }
html body .plus-campaigns-nav-btn__text { color: var(--hd-o) !important; }
html body .plus-campaigns-nav-btn__icon { background: var(--hd-o) !important; color: #fff !important; border-radius: 50% !important; }
html body .plus-campaigns-nav-btn:hover { background: #ffe2d1 !important; transform: none !important; }

/* ── Hikayeler satırı: zemin ve ince çizgi ────────────────── */
html body .stories-container { border-bottom: 1px solid var(--hd-line) !important; }

/* ── Mobil ────────────────────────────────────────────────── */
@media (max-width: 991.98px) {
    html body .mobile-profile-box {
        border-radius: 999px;
        background: var(--hd-card);
        border: 1px solid var(--hd-line);
    }
    html body .mobile-search-input {
        border-radius: 999px !important;
        background: var(--hd-soft) !important;
    }
}

/* ============================================================
   KATEGORİ MENÜSÜ (hamburger → #categoryMenu)
   ============================================================ */
html body #categoryMenu {
    background: var(--hd-bg);
    border-right: 0;
    box-shadow: 24px 0 48px -24px rgba(0, 0, 0, 0.35);
}
html body #categoryMenu .offcanvas-header-modern { border-bottom: 0; background: var(--hd-bg); padding: 14px 14px 0; }
/* Kullanıcı kartı: koyu + turuncu ışık (site koyu kutularıyla aynı) */
html body .ocm-user-card {
    border-radius: 22px;
    padding: 16px 16px;
    position: relative;
    overflow: hidden;
    isolation: isolate;
    background:
        radial-gradient(70% 140% at 100% 0%, rgba(255, 100, 23, 0.5), transparent 60%),
        linear-gradient(135deg, #14161f 0%, #1d2030 100%);
}
html body .ocm-user-avatar { width: 44px; height: 44px; background: rgba(255,255,255,.1); border: 2px solid rgba(255,255,255,.18); }
html body .ocm-user-name { font-weight: 600; font-size: 15px; }
html body .ocm-user-sub { color: rgba(255,255,255,.6); font-size: 12px; }
html body .ocm-close-btn { width: 36px; height: 36px; background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.16); transition: background-color .15s ease, transform 160ms var(--hd-ease); }
html body .ocm-close-btn:hover { background: rgba(255,255,255,.2); }
html body .ocm-close-btn:active { transform: scale(0.94); }

/* Sekmeler: segment kontrol */
html body .ocm-tab-bar { background: var(--hd-bg); padding: 12px 0 10px; gap: 6px; }
html body .ocm-tab-btn {
    border: 1px solid var(--hd-line);
    background: var(--hd-card);
    color: var(--hd-ink);
    border-radius: 999px;
    padding: 9px 12px;
    font-size: 13px;
    font-weight: 500;
    transition: background-color .15s ease, color .15s ease, border-color .15s ease;
}
html body .ocm-tab-btn.active { background: var(--hd-ink); border-color: var(--hd-ink); color: #fff; }
html body.dark-mode .ocm-tab-btn.active { background: #fff; color: #111; }

html body #categoryMenu .offcanvas-body { background: var(--hd-bg); padding: 0 14px 14px !important; }
html body .ocm-section-title { background: transparent; color: var(--hd-muted); font-weight: 600; letter-spacing: .06em; padding: 6px 4px 8px; }

/* Listeler: tek beyaz kutu içinde, ince ayraçlı satırlar */
html body .ocm-cat-list,
html body .ocm-menu-list {
    background: var(--hd-card);
    border: 1px solid var(--hd-line);
    border-radius: 22px;
    overflow: hidden;
    padding: 4px 0;
}
html body .ocm-cat-item,
html body .ocm-menu-item {
    padding: 11px 14px;
    margin: 0 6px;
    border-bottom: 0;
    border-radius: 14px;
    color: var(--hd-ink);
    transition: background-color .15s ease;
}
html body .ocm-cat-item + .ocm-cat-item,
html body .ocm-menu-item + .ocm-menu-item { box-shadow: inset 0 1px 0 var(--hd-line); }
html body .ocm-cat-item:hover,
html body .ocm-menu-item:hover { background: var(--hd-soft); color: var(--hd-ink); box-shadow: none; }
html body .ocm-cat-item:hover + .ocm-cat-item,
html body .ocm-menu-item:hover + .ocm-menu-item { box-shadow: none; }
html body .ocm-cat-item:active,
html body .ocm-menu-item:active { background: var(--hd-soft-2); }
html body .ocm-cat-icon { width: 38px; height: 38px; border-radius: 50% !important; }
html body .ocm-cat-label { font-weight: 500; font-size: 14px; }
html body .ocm-cat-arrow {
    width: 28px; height: 28px; border-radius: 50%;
    display: grid; place-items: center;
    background: var(--hd-soft); color: var(--hd-muted); font-size: 9px;
    transition: background-color .15s ease, color .15s ease;
}
html body .ocm-cat-item:hover .ocm-cat-arrow { background: var(--hd-ink); color: #fff; }

html body .ocm-menu-item { font-size: 14px; font-weight: 500; border-left: 0 !important; }
html body .ocm-menu-icon { width: 36px; height: 36px; border-radius: 50%; background: var(--hd-soft); color: var(--hd-ink); }
html body .ocm-menu-item.active-page { background: var(--hd-soft-2); color: var(--hd-ink); }
html body .ocm-menu-item:hover .ocm-menu-icon,
html body .ocm-menu-item.active-page .ocm-menu-icon { background: var(--hd-o-soft); color: var(--hd-o); }

/* Alt butonlar: site CTA hapları */
html body .ocm-cta-wrap { background: transparent; border-top: 0; padding: 14px 0 0; }
html body .ocm-cta-btn {
    border-radius: 999px;
    padding: 14px;
    font-size: 14px;
    font-weight: 700;
    border: 0;
    transition: transform 160ms var(--hd-ease), background-color .15s ease;
}
html body .ocm-cta-btn:hover { opacity: 1; transform: none; }
html body .ocm-cta-btn:active { transform: scale(0.98); }
html body .ocm-cta-plus { background: var(--hd-o); color: #fff; box-shadow: 0 10px 24px -10px rgba(255, 100, 23, 0.8); }
html body .ocm-cta-plus:hover { background: #f05a0e; color: #fff; }
html body .ocm-cta-wa { background: #22c55e; color: #fff; border: 0; box-shadow: 0 10px 24px -10px rgba(22, 163, 74, 0.8); }
html body .ocm-cta-wa:hover { background: #16a34a; color: #fff; }

/* ============================================================
   HİKAYELER
   ============================================================ */
html body .stories-container { background: var(--hd-card) !important; }
html body .story-ring {
    width: 72px;
    height: 72px;
    padding: 3px;                 /* tam piksel: yarım piksel bir tarafa yuvarlanıp kalınlığı eşitsiz gösteriyordu */
    box-sizing: border-box;
    flex-shrink: 0;
    /* Tek düze halka: açık ton yok, her yerde aynı kalınlıkta görünür */
    background: linear-gradient(135deg, #ff7a2e 0%, #ff6417 50%, #f2540b 100%);
    box-shadow: none;
}
html body .story-ring.viewed { background: var(--hd-line); }
html body .story-thumb {
    width: 100% !important;
    height: 100% !important;
    box-sizing: border-box;
    border: 3px solid var(--hd-card) !important;
    border-radius: 50%;
    background: var(--hd-soft);
    display: block;
}
@media (max-width: 767px) { html body .story-ring { width: 64px; height: 64px; } }
@media (max-width: 480px) { html body .story-ring { width: 60px; height: 60px; } }
html body .story-label {
    font-size: 12px;
    font-weight: 500;
    color: var(--hd-ink);
    margin-top: 2px;
}
html body .custom-swiper-button {
    width: 36px !important;
    height: 36px !important;
    border-radius: 50% !important;
    background: var(--hd-card) !important;
    border: 1px solid var(--hd-line) !important;
    box-shadow: 0 8px 18px -10px rgba(0, 0, 0, 0.3) !important;
}
html body .custom-swiper-button::after { color: var(--hd-ink) !important; }

@media (prefers-reduced-motion: reduce) {
    html body .search-wrapper button[type="submit"],
    html body .hdr-action-box,
    html body .hdr-social-btn,
    html body .ocm-cat-item,
    html body .ocm-cta-btn { transition: none !important; }
}

/* ══ Kullanıcı menüsü (profil açılır menüsü) ═══════════════════════════ */
html body .dropdown-menu.um {
    width: 320px; min-width: 320px; padding: 10px;
    border: 1px solid var(--hd-line); border-radius: 24px;
    background: var(--hd-card); color: var(--hd-ink);
    box-shadow: 0 24px 60px -24px rgba(18, 18, 18, .35), 0 2px 6px rgba(18, 18, 18, .04);
    font-family: 'Gilroy', system-ui, sans-serif;
}
.um-head { display: flex; align-items: center; gap: 12px; padding: 8px 8px 12px; }
.um-av { width: 44px; height: 44px; border-radius: 50%; overflow: hidden; flex-shrink: 0; display: grid; place-items: center; background: var(--hd-o-soft); color: var(--hd-o); font-weight: 700; font-size: 1.05rem; }
.um-av img { width: 100%; height: 100%; object-fit: cover; }
.um-who { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.um-who b { font-size: 1rem; font-weight: 600; letter-spacing: -.02em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.um-who small { font-size: .76rem; color: var(--hd-muted); }
.um-plus { display: inline-flex; align-items: center; gap: 5px; font-size: .74rem; color: var(--hd-muted); }
.um-plus img { height: 15px; width: auto; }
html body.dark-mode .um-plus img { background: #fff; border-radius: 999px; padding: 1px 5px; }

/* Level kartı — koyu DS kutusu, seviye rengiyle */
.um-level { position: relative; overflow: hidden; isolation: isolate; display: flex; align-items: center; gap: 12px; padding: 14px; border-radius: 18px; color: #fff;
    background: radial-gradient(80% 120% at 100% 0%, color-mix(in srgb, var(--lc, #ff6417) 45%, transparent), transparent 60%), linear-gradient(135deg, #14161f, #1d2030); }
.um-level::before { content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none; background-image: linear-gradient(rgba(255,255,255,.05) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.05) 1px, transparent 1px); background-size: 24px 24px; -webkit-mask-image: linear-gradient(90deg, transparent, #000 70%); mask-image: linear-gradient(90deg, transparent, #000 70%); }
.um-level__badge { width: 42px; height: 42px; border-radius: 50%; flex-shrink: 0; display: grid; place-items: center; font-size: 1rem; color: #fff; background: var(--lc, #ff6417); box-shadow: 0 0 0 5px color-mix(in srgb, var(--lc, #ff6417) 22%, transparent); }
.um-level__info { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 7px; }
.um-level__row { display: flex; align-items: baseline; gap: 6px; min-width: 0; }
.um-level__row b { font-size: 1rem; font-weight: 700; letter-spacing: -.02em; }
.um-level__t { font-size: .78rem; color: rgba(255,255,255,.65); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.um-level__xp { margin-left: auto; font-size: .72rem; color: rgba(255,255,255,.55); white-space: nowrap; font-variant-numeric: tabular-nums; }
.um-level__bar { height: 6px; border-radius: 999px; background: rgba(255,255,255,.12); overflow: hidden; }
.um-level__bar i { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--hd-o), #ffb07a); }
.um-level small { font-size: .7rem; color: rgba(255,255,255,.55); }
.um-level small i { color: #ffd46b; }

/* Menü satırları */
.um-list { display: grid; gap: 2px; margin-top: 8px; }
html body .um-item { display: flex; align-items: center; gap: 12px; padding: 8px; border-radius: 14px; color: var(--hd-ink); text-decoration: none; font-size: .9rem; font-weight: 500; transition: background-color .15s ease; }
html body .um-item:hover, html body .um-item:focus-visible { background: var(--hd-soft); color: var(--hd-ink); }
.um-ic { width: 36px; height: 36px; border-radius: 50%; flex-shrink: 0; display: grid; place-items: center; background: var(--hd-soft); color: var(--hd-ink); font-size: .85rem; transition: background-color .15s ease; }
.um-item:hover .um-ic { background: var(--hd-card); }
.um-ic--dark { background: var(--hd-ink); color: var(--hd-card); }
.um-item:hover .um-ic--dark { background: var(--hd-ink); }
.um-tx { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.um-tx small { font-size: .72rem; color: var(--hd-muted); font-weight: 500; }
.um-go { font-size: .62rem; color: var(--hd-muted); opacity: .6; transition: transform .2s ease, opacity .15s; }
.um-item:hover .um-go { transform: translateX(2px); opacity: 1; }
.um-item--plus { background: var(--hd-o-soft); }
html body .um-item--plus:hover { background: color-mix(in srgb, var(--hd-o) 16%, var(--hd-card)); }
.um-item--plus .um-ic, .um-item--plus:hover .um-ic { background: var(--hd-o); color: #fff; }
.um-item--plus .um-go { color: var(--hd-o); opacity: 1; }
.um-item--plus { margin-bottom: 4px; }

/* Karanlık mod anahtarı (görsel) */
.um-sw { position: relative; width: 36px; height: 22px; border-radius: 999px; background: #d9d9d5; flex-shrink: 0; transition: background-color .2s ease; }
.um-sw::after { content: ""; position: absolute; top: 3px; left: 3px; width: 16px; height: 16px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0,0,0,.2); transition: transform .25s cubic-bezier(.23,1,.32,1); }
html body.dark-mode .um-sw { background: var(--hd-o); }
html body.dark-mode .um-sw::after { transform: translateX(14px); }

html body .um-logout { display: flex; align-items: center; justify-content: center; gap: 8px; margin-top: 8px; padding: 11px; border-radius: 14px; border-top: 0; background: transparent; color: #e5484d; font-size: .86rem; font-weight: 600; text-decoration: none; box-shadow: inset 0 1px 0 var(--hd-line); border-top-left-radius: 0; border-top-right-radius: 0; transition: background-color .15s ease; }
html body .um-logout:hover { background: rgba(229, 72, 77, .08); color: #e5484d; border-radius: 14px; box-shadow: none; }

/* ── PLUS KAMPANYALARI menü öğesi (eski .vip-plus-link degrade-metin stilini nötrler) ── */
html body .main-menu a.menu-link.vip-plus-link {
    display: inline-flex; align-items: center; gap: 2px;
    background: none; -webkit-background-clip: border-box; background-clip: border-box;
    -webkit-text-fill-color: currentColor; color: var(--hd-o);
    font-weight: 600 !important; letter-spacing: .01em; white-space: nowrap;
}
html body .main-menu a.menu-link.vip-plus-link i { color: var(--hd-o); -webkit-text-fill-color: currentColor; }
html body .main-menu a.menu-link.vip-plus-link::after { display: none; }
html body .main-menu a.menu-link.vip-plus-link:hover { background: var(--hd-o-soft); color: var(--hd-o); }
html body .main-menu a.menu-link.vip-plus-link.active { background: var(--hd-o-soft); color: var(--hd-o); }
