/* ═══════════════════════════════════════════════════════════════
   YAFLOG Tasarım Sistemi — Logistics/Delivery paleti
   Lacivert üst bar: #0F172A · Birincil: #2563EB · CTA: #EA580C
   Yazı: Lexend (başlık) + Source Sans 3 (metin) · Minimalism
   ═══════════════════════════════════════════════════════════════ */

:root {
    /* ── Renk belirteçleri ── */
    --yf-navy:       #0F172A;
    --yf-navy-soft:  #1E293B;
    --yf-primary:    #2563EB;
    --yf-primary-dk: #1D4ED8;
    --yf-primary-bg: #EFF4FE;
    --yf-accent:     #EA580C;
    --yf-accent-dk:  #C2410C;
    --yf-light:      #F4F6FA;
    --yf-surface:    #FFFFFF;
    --yf-border:     #E2E8F0;
    --yf-border-2:   #E0E3EA;
    --yf-text:       #1E293B;
    --yf-muted:      #475569;
    --yf-faint:      #64748B;
    --yf-success:    #16A34A;
    --yf-success-bg: #DCFCE7;
    --yf-danger:     #DC2626;
    --yf-danger-bg:  #FEE2E2;
    --yf-warn:       #D97706;
    --yf-warn-bg:    #FEF3C7;
    --yf-info:       #0369A1;
    --yf-info-bg:    #E0F2FE;
    --yf-blue-50:    #EFF6FF;
    --yf-blue-100:   #DBEAFE;
    --yf-orange-600: #EA580C;
    --yf-orange-700: #C2410C;
    --yf-sidebar-w:  240px;

    /* ── Geriye uyumluluk (eski değişken adları) ── */
    --yaf-primary: var(--yf-primary);
    --yaf-accent:  var(--yf-accent-dk);
    --yaf-light:   var(--yf-light);

    /* ── Tipografi ── */
    --yf-font-head: 'Lexend', system-ui, sans-serif;
    --yf-font-body: 'Source Sans 3', system-ui, sans-serif;

    /* ── Yüzey ── */
    --yf-shadow-sm: 0 1px 3px rgba(15, 23, 42, .08);
    --yf-shadow-md: 0 4px 16px rgba(15, 23, 42, .10);
    --yf-radius:    8px;
    --yf-radius-lg: 12px;
}

/* ── Temel ── */
html, body { height: 100%; }
body {
    background: var(--yf-light);
    font-family: var(--yf-font-body);
    font-size: .92rem;
    color: var(--yf-text);
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}
h1, h2, h3, h4, h5, h6,
.card-title, .page-title, .yf-page-head h1, .yf-section-title {
    font-family: var(--yf-font-head);
}

/* Görünür odak halkası — tüm etkileşimli öğeler */
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
[tabindex]:focus-visible {
    outline: 2px solid var(--yf-primary);
    outline-offset: 2px;
    border-radius: 3px;
}

/* Hareket azaltma tercihi */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: .01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: .01ms !important;
        scroll-behavior: auto !important;
    }
}

/* Klavye erişilebilirliği: skip link */
.skip-link {
    position: absolute;
    top: -48px;
    left: .75rem;
    z-index: 1050;
    background: var(--yf-navy);
    color: #fff;
    padding: .6rem 1rem;
    border-radius: 0 0 var(--yf-radius) var(--yf-radius);
    text-decoration: none;
    font-weight: 600;
    font-size: .85rem;
    transition: top .15s;
}
.skip-link:focus { top: 0; color: #fff; }

/* ── Top Navbar ── */
.top-navbar {
    background: var(--yf-navy);
    padding: .55rem 0;
    position: sticky;
    top: 0;
    z-index: 1030;
}
.top-navbar .brand {
    color: #fff;
    font-family: var(--yf-font-head);
    font-size: 1.3rem;
    font-weight: 700;
    text-decoration: none;
    letter-spacing: -.5px;
    display: inline-flex;
    align-items: center;
    gap: .45rem;
    white-space: nowrap;
    flex-shrink: 0;
}
.top-navbar .brand > span { color: #FDBA74; }
.search-wrap { position: relative; display: flex; }
.top-navbar .search-wrap { flex: 1; min-width: 0; max-width: 560px; }
.search-wrap input {
    border-radius: var(--yf-radius) 0 0 var(--yf-radius);
    border: none;
    padding: .5rem 1rem .5rem 2.4rem;
    font-size: .9rem;
    width: 100%;
    color: var(--yf-text);
    background: #fff;
}
.search-wrap input::placeholder { color: var(--yf-faint); }
.search-wrap .search-icon {
    position: absolute;
    left: .75rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--yf-faint);
    font-size: .95rem;
    pointer-events: none;
    z-index: 2;
}
.search-wrap button {
    border-radius: 0 var(--yf-radius) var(--yf-radius) 0;
    background: var(--yf-accent-dk);
    border: none;
    padding: .5rem 1rem;
    color: #fff;
    font-weight: 600;
    cursor: pointer;
}
.search-wrap button:hover { background: var(--yf-accent); }
.mobile-search input,
.mobile-search button {
    height: 44px;
    font-size: .95rem;
}
.mobile-search button {
    background: var(--yf-orange-600);
    border: none;
    color: #fff;
    border-radius: var(--yf-radius);
}
.mobile-search button:hover { background: var(--yf-orange-700); }
.nav-btn-outline {
    border: 1.5px solid rgba(255, 255, 255, .55);
    color: #fff;
    border-radius: var(--yf-radius);
    padding: .35rem .9rem;
    font-size: .84rem;
    font-weight: 600;
    text-decoration: none;
    white-space: nowrap;
    background: transparent;
    cursor: pointer;
}
.nav-btn-outline:hover,
.nav-btn-outline:focus-visible { background: rgba(255, 255, 255, .12); color: #fff; }
.nav-btn-primary {
    background: var(--yf-accent-dk);
    color: #fff;
    border: none;
    border-radius: var(--yf-radius);
    padding: .35rem .9rem;
    font-size: .84rem;
    text-decoration: none;
    font-weight: 700;
    white-space: nowrap;
    cursor: pointer;
}
.nav-btn-primary:hover,
.nav-btn-primary:focus-visible { background: var(--yf-accent); color: #fff; }
.nav-icon-btn {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: var(--yf-radius);
    color: rgba(255, 255, 255, .85);
    text-decoration: none;
    font-size: 1.05rem;
}
.nav-icon-btn:hover,
.nav-icon-btn:focus-visible { background: rgba(255, 255, 255, .12); color: #fff; }
.nav-icon-btn .dot {
    position: absolute;
    top: -4px;
    right: -6px;
    background: var(--yf-accent);
    color: #fff;
    font-size: .62rem;
    font-weight: 700;
    line-height: 1;
    padding: .22rem .34rem;
    border-radius: 8px;
    min-width: 16px;
    text-align: center;
    border: 1px solid var(--yf-navy);
}
.user-chip {
    color: #fff;
    font-size: .84rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: .4rem;
    background: transparent;
    border: none;
    padding: .25rem .4rem .25rem .25rem;
    border-radius: 999px;
}
.user-chip::after { margin-left: .15rem; font-size: .7rem; }
.user-chip:hover { background: rgba(255, 255, 255, .08); color: #fff; }
.user-avatar-sm {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: var(--yf-primary);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: .8rem;
    color: #fff;
    flex-shrink: 0;
}
@media (max-width: 575.98px) {
    .top-navbar .brand { font-size: 1.1rem; }
    .nav-btn-outline, .nav-btn-primary { padding: .3rem .55rem; font-size: .78rem; }
}

/* ── Category Bar ── */
.cat-bar { background: var(--yf-surface); border-bottom: 1px solid var(--yf-border-2); }
.cat-bar .nav-link {
    color: var(--yf-muted);
    font-size: .83rem;
    padding: .55rem .9rem;
    border-radius: 0;
    white-space: nowrap;
}
.cat-bar .nav-link:hover,
.cat-bar .nav-link.active {
    color: var(--yf-primary-dk);
    background: var(--yf-primary-bg);
    font-weight: 600;
}
.cat-bar .nav-link i { margin-right: .3rem; }

/* ── Yan kart (sidebar) ── */
.sidebar-card {
    background: var(--yf-surface);
    border-radius: var(--yf-radius);
    border: 1px solid var(--yf-border-2);
    padding: 1rem;
    margin-bottom: 1rem;
}
.sidebar-card h6 {
    font-family: var(--yf-font-head);
    font-size: .82rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .5px;
    color: var(--yf-muted);
    border-bottom: 1px solid var(--yf-border);
    padding-bottom: .5rem;
    margin-bottom: .75rem;
}
.sidebar-link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: .35rem 0;
    color: var(--yf-text);
    text-decoration: none;
    font-size: .87rem;
    border-bottom: 1px solid #f5f5f5;
}
.sidebar-link:last-child { border-bottom: none; }
.sidebar-link:hover { color: var(--yf-primary-dk); }
.sidebar-link .cnt {
    background: var(--yf-primary-bg);
    color: var(--yf-muted);
    font-size: .73rem;
    padding: .1rem .45rem;
    border-radius: 10px;
    font-weight: 600;
}

/* ── Listing Cards ── */
.listing-card {
    background: var(--yf-surface);
    border: 1px solid var(--yf-border-2);
    border-radius: var(--yf-radius);
    overflow: hidden;
    transition: box-shadow .15s, transform .15s;
    height: 100%;
    position: relative;
}
.listing-card:hover {
    box-shadow: var(--yf-shadow-md);
    transform: translateY(-2px);
}
.listing-card .img-placeholder {
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, #EEF2F9 0%, #D6DFF2 100%);
    height: 160px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #94A3B8;
    font-size: 2.5rem;
}
.listing-card .img-placeholder img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.listing-card .card-body { padding: .8rem; }
.listing-card .card-title {
    font-size: .88rem;
    font-weight: 600;
    color: var(--yf-text);
    margin-bottom: .25rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.listing-card .price {
    font-family: var(--yf-font-head);
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--yf-primary-dk);
}
.listing-card .meta {
    font-size: .75rem;
    color: var(--yf-faint);
}
.listing-card:hover .card-title { color: var(--yf-primary-dk); }

/* ── Detay sayfası görsel alanı ── */
.detail-media { aspect-ratio: 16 / 9; }
.detail-media img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.detail-media .img-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    aspect-ratio: 16 / 9;
    background: linear-gradient(180deg, var(--yf-blue-50) 0%, var(--yf-blue-100) 100%);
    font-size: 3rem;
    color: #93C5FD;
    border-radius: var(--yf-radius);
}
.sponsored-badge {
    position: absolute;
    top: 8px;
    left: 8px;
    background: var(--yf-accent-dk);
    color: #fff;
    font-size: .7rem;
    font-weight: 700;
    padding: .15rem .5rem;
    border-radius: 3px;
    letter-spacing: .3px;
}

/* ── Güven rozetleri ── */
.trust-badge {
    display: inline-flex;
    align-items: center;
    gap: .25rem;
    font-size: .72rem;
    font-weight: 700;
    padding: .18rem .55rem;
    border-radius: 999px;
    letter-spacing: .3px;
}
.trust-badge.high { background: var(--yf-success-bg); color: #14532D; }
.trust-badge.mid  { background: var(--yf-warn-bg);    color: #78350F; }
.trust-badge.low  { background: var(--yf-danger-bg);  color: #7F1D1D; }
.trust-badge.new  { background: var(--yf-info-bg);    color: #0C4A6E; }

/* ── CHIP / ROTA / STAT ── */
.yf-chip {
    display: inline-flex;
    align-items: center;
    gap: .3rem;
    background: var(--yf-primary-bg);
    color: var(--yf-primary-dk);
    font-size: .75rem;
    font-weight: 600;
    padding: .22rem .6rem;
    border-radius: 999px;
    text-decoration: none;
    border: 1px solid #DBEAFE;
}
.yf-chip i { font-size: .8rem; }
.yf-route {
    display: inline-flex;
    align-items: center;
    gap: .4rem;
    font-weight: 600;
    font-size: .85rem;
    color: var(--yf-text);
}
.yf-route .from { color: var(--yf-primary-dk); }
.yf-route .to   { color: var(--yf-accent-dk); }
.yf-route .sep  { color: var(--yf-faint); font-size: .8rem; }
.yf-stat {
    background: var(--yf-surface);
    border: 1px solid var(--yf-border-2);
    border-radius: var(--yf-radius-lg);
    padding: 1rem 1.1rem;
    box-shadow: var(--yf-shadow-sm);
    display: flex;
    align-items: center;
    gap: .75rem;
}
.yf-stat .yf-stat-icon {
    width: 42px;
    height: 42px;
    border-radius: var(--yf-radius);
    background: var(--yf-primary-bg);
    color: var(--yf-primary-dk);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.15rem;
    flex-shrink: 0;
}
.yf-stat .yf-stat-value { font-family: var(--yf-font-head); font-weight: 700; font-size: 1.25rem; line-height: 1.2; color: var(--yf-text); }
.yf-stat .yf-stat-label { font-size: .76rem; color: var(--yf-faint); }

/* ── Sayfa başlığı / Hero ── */
.yf-page-head { padding: .5rem 0 1.25rem; }
.yf-page-head h1 { font-weight: 700; font-size: 1.5rem; color: var(--yf-navy); margin: 0 0 .25rem; }
.yf-page-head .lead { color: var(--yf-muted); font-size: .95rem; margin: 0; }
.yf-eyebrow {
    display: inline-block;
    font-family: var(--yf-font-head);
    font-size: .72rem;
    font-weight: 700;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: var(--yf-primary-dk);
    margin-bottom: .35rem;
}
.yf-section-title { font-weight: 700; font-size: 1.1rem; color: var(--yf-navy); margin: 0; }
.yf-hero {
    background: linear-gradient(135deg, var(--yf-navy) 0%, #16305E 100%);
    color: #fff;
    border-radius: var(--yf-radius-lg);
    padding: 2.2rem 1.5rem;
    margin-bottom: 1.5rem;
}
.yf-hero h1, .yf-hero h2 { font-weight: 700; color: #fff; }
.yf-hero p { color: rgba(255, 255, 255, .82); }
.yf-sticky { position: sticky; top: 72px; z-index: 900; }

/* ── Flash / Alerts ── */
.flash-bar {
    background: var(--yf-success-bg);
    border: none;
    border-left: 4px solid var(--yf-success);
    border-radius: 0;
    color: #14532D;
}
.flash-bar.error {
    background: var(--yf-danger-bg);
    border-left-color: var(--yf-danger);
    color: #7F1D1D;
}
.flash-bar .btn-close { filter: none; }

/* ── Footer ── */
.site-footer {
    background: var(--yf-navy);
    color: #B8C0CC;
    padding: 2.5rem 0 0;
    margin-top: 3rem;
    font-size: .82rem;
}
.site-footer a { color: #9AA6B8; text-decoration: none; }
.site-footer a:hover,
.site-footer a:focus-visible { color: #fff; text-decoration: underline; }
.site-footer .footer-title {
    font-family: var(--yf-font-head);
    color: #fff;
    font-weight: 600;
    margin-bottom: .6rem;
    font-size: .88rem;
}
.footer-bottom {
    margin-top: 1.75rem;
    border-top: 1px solid rgba(255, 255, 255, .08);
    padding: .9rem 0;
    color: #8B96A5;
    font-size: .78rem;
}

/* ── Boş durum ── */
.empty-state { text-align: center; padding: 4rem 1rem; color: var(--yf-faint); }
.empty-state i { font-size: 3rem; display: block; margin-bottom: 1rem; opacity: .4; }

/* ── Çerez bandı ── */
.cookie-banner {
    position: fixed;
    bottom: 1rem;
    right: 1rem;
    left: 1rem;
    z-index: 1045;
    max-width: 560px;
    margin-inline: auto;
    background: var(--yf-surface);
    border: 1px solid var(--yf-border);
    border-radius: var(--yf-radius-lg);
    box-shadow: var(--yf-shadow-md);
    padding: 1rem 1.1rem;
    display: flex;
    align-items: center;
    gap: .75rem;
    font-size: .82rem;
    color: var(--yf-text);
}
.cookie-banner .btn { flex-shrink: 0; }

/* ═══════════════════════════════════════════════════════════════
   DEMO PANEL (layout: demo.blade.php)
   ═══════════════════════════════════════════════════════════════ */
.sidebar {
    width: var(--yf-sidebar-w);
    min-height: 100vh;
    background: linear-gradient(180deg, var(--yf-navy) 0%, #0C1428 100%);
    position: fixed;
    top: 0;
    left: 0;
    z-index: 1040;
    display: flex;
    flex-direction: column;
    overflow-y: auto;
}
.sidebar .brand { padding: 1.2rem 1.1rem; border-bottom: 1px solid rgba(255, 255, 255, .08); }
.sidebar .brand a {
    color: #fff;
    text-decoration: none;
    font-family: var(--yf-font-head);
    font-weight: 700;
    font-size: 1.15rem;
    letter-spacing: .5px;
}
.sidebar .brand span { color: #74A9F8; }
.sidebar .nav-section {
    padding: .7rem 1rem .2rem;
    color: rgba(255, 255, 255, .4);
    font-size: .7rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 600;
}
.sidebar .nav-link {
    color: rgba(255, 255, 255, .72);
    padding: .45rem 1.1rem;
    border-radius: 6px;
    margin: 1px 6px;
    transition: background .15s, color .15s;
    display: flex;
    align-items: center;
    gap: .55rem;
}
.sidebar .nav-link:hover { background: rgba(37, 99, 235, .18); color: #fff; }
.sidebar .nav-link.active { background: rgba(37, 99, 235, .25); color: #fff; }
.sidebar .nav-link i { width: 18px; text-align: center; font-size: 1rem; opacity: .8; }
.main-content { margin-left: var(--yf-sidebar-w); min-height: 100vh; }
.topbar {
    background: var(--yf-surface);
    border-bottom: 1px solid var(--yf-border);
    padding: .65rem 1.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: sticky;
    top: 0;
    z-index: 1030;
    gap: .75rem;
}
.topbar .page-title { font-weight: 600; font-size: 1.05rem; color: var(--yf-navy); margin: 0; }
.yf-hamburger {
    display: none;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border: 1px solid var(--yf-border);
    border-radius: var(--yf-radius);
    background: var(--yf-surface);
    color: var(--yf-navy);
    font-size: 1.25rem;
    cursor: pointer;
    flex-shrink: 0;
}
.yf-hamburger:hover { background: var(--yf-light); }
.content-area { padding: 1.5rem; }
.sidebar-overlay {
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, .55);
    z-index: 1035;
}

/* Demo panel bileşenleri */
.card { border: 0; box-shadow: var(--yf-shadow-sm); border-radius: 10px; }
.card-header { background: transparent; border-bottom: 1px solid #F0F2F5; font-weight: 600; }
.badge-trust {
    background: linear-gradient(135deg, var(--yf-primary), var(--yf-primary-dk));
    color: #fff;
    border-radius: 20px;
    padding: .3em .8em;
    font-weight: 700;
}
.stat-card { border-radius: 12px; padding: 1.2rem; color: #fff; }
.table th {
    font-weight: 600;
    font-size: .8rem;
    text-transform: uppercase;
    letter-spacing: .5px;
    color: var(--yf-faint);
    border-bottom: 1px solid #F0F2F5;
}
.table td { vertical-align: middle; }
.btn-sm { font-size: .8rem; }
.form-label { font-weight: 500; font-size: .88rem; }

/* Demo panel: mobil sidebar davranışı */
@media (max-width: 991.98px) {
    .sidebar {
        transform: translateX(-100%);
        transition: transform .25s ease, visibility .25s ease;
        box-shadow: none;
        visibility: hidden;
    }
    .sidebar.open {
        transform: translateX(0);
        box-shadow: var(--yf-shadow-md);
        visibility: visible;
    }
    .main-content { margin-left: 0; }
    .yf-hamburger { display: inline-flex; }
    .content-area { padding: 1rem; }
}
@media (min-width: 992px) {
    .sidebar-overlay { display: none !important; }
}
