/* ============================================================
   ATAMAK AMBALAJ — shared.css
   Admin ve Müşteri Paneli ortak bileşenleri
   Yükleme sırası: bu dosya admin.css ve panel.css'den ÖNCE gelmelidir.
   ============================================================ */

/* ── GLOBAL DEĞİŞKENLER ── */
/* NOT: --accent ve --accent-dark atamak.css :root'ta tanımlıdır.
   CSS-01 düzeltmesi: Çift tanım kaldırıldı (28 Nis 2026). */
:root {
    /* --accent ve --accent-dark → atamak.css'de tanımlı, buraya taşınmadı */
    --accent-bg:       #E8F8ED;
    --accent-border:   rgba(39,176,69,.4);

    --color-text:      #2B2B2B;
    --color-muted:     #6B6B6B;
    --color-border:    #E0E0E0;
    --color-bg-light:  #F5F5F5;
    --color-bg-card:   #FAFAFA;

    --sidebar-bg:      #2B2B2B;
    --radius-card:     10px;
    --shadow-topbar:   0 1px 8px rgba(0,0,0,.06);
}


/* ════════════════════════════════════════════════
   1. STAT KARTLARI — .stat-card
   ════════════════════════════════════════════════ */

.stat-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.stat-card {
    background: #fff;
    border: 1px solid var(--color-border);
    border-top: 3px solid var(--color-border); /* renk varyantları override eder */
    border-radius: var(--radius-card);
    padding: 1.25rem;
    display: flex;
    align-items: center;
    gap: 1rem;
}

/* Renk varyantları */
.stat-card--blue   { border-top-color: #1A4EA6; }
.stat-card--blue   .stat-card-icon { color: #1A4EA6; background: #E8F0FB; }
.stat-card--orange { border-top-color: #E65100; }
.stat-card--orange .stat-card-icon { color: #E65100; background: #FFF3E0; }
.stat-card--green  { border-top-color: var(--accent); }
.stat-card--green  .stat-card-icon { color: var(--accent); background: var(--accent-bg); }
.stat-card--red    { border-top-color: #A32D2D; }
.stat-card--red    .stat-card-icon { color: #A32D2D; background: #FFEBEB; }

/* Tıklanabilir varyant */
a.stat-card--link {
    text-decoration: none;
    color: inherit;
    transition: box-shadow .15s ease, transform .15s ease;
    cursor: pointer;
}
a.stat-card--link:hover {
    box-shadow: 0 4px 12px rgba(0,0,0,.1);
    transform: translateY(-2px);
}
a.stat-card--link:hover .stat-card-label {
    text-decoration: underline;
    text-underline-offset: 2px;
}

/* İkon kutusu */
.stat-card-icon {
    flex-shrink: 0;
    width: 44px; height: 44px;    /* admin 44px, panel 42px — 44px'de birleştirildi */
    border-radius: var(--radius-card);
    display: flex; align-items: center; justify-content: center;
    font-size: 1.3rem;
    background: var(--color-bg-light);
    color: var(--accent);
}

.stat-card-body  { flex: 1; min-width: 0; }

.stat-card-value {
    font-family: 'Barlow Condensed', sans-serif;
    font-size: 2rem; font-weight: 700;
    color: var(--color-text); line-height: 1;
}

.stat-card-label {
    font-size: .8rem;
    color: var(--color-muted);
    margin-top: .25rem;
}

/* ── TABLET ARA KATMANI (768px–991px — Bootstrap md↔lg, CSS-03) ── */
@media (min-width: 768px) and (max-width: 992px) {
    .stat-card-value { font-size: 1.6rem; }
}

/* Geriye dönük uyum — eski .stat-num / .stat-label / .stat-icon isimleri */
.stat-card .stat-num   { font-family: 'Barlow Condensed', sans-serif; font-size: 2.2rem; font-weight: 700; color: var(--color-text); line-height: 1; }
.stat-card .stat-num span { color: var(--accent); }
.stat-card .stat-label { font-size: .82rem; color: var(--color-muted); margin-top: .3rem; }
.stat-card .stat-icon  { font-size: 1.4rem; color: var(--accent); margin-bottom: .5rem; }


/* ════════════════════════════════════════════════
   2. PANEL KARTLARI — .panel-card
   ════════════════════════════════════════════════ */

.panel-card {
    background: #fff;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-card);
    overflow: hidden;
    margin-bottom: 1.25rem;
}

.panel-card-header {
    padding: .9rem 1.25rem;
    border-bottom: 1px solid var(--color-border);
    background: var(--color-bg-card);
    display: flex; align-items: center; justify-content: space-between;
}

.panel-card-title { font-size: .95rem; font-weight: 600; color: var(--color-text); margin: 0; }

.panel-card-body { padding: 1.25rem; }


/* ════════════════════════════════════════════════
   3. TABLO — .table-panel
   Her iki panel'de ortak kullanılan tablo stili.
   ════════════════════════════════════════════════ */

.table-panel thead th {
    background: var(--color-text);
    color: #fff;
    font-size: .78rem; font-weight: 600;
    text-transform: uppercase; letter-spacing: .04em;
    padding: 9px 13px; border: none; white-space: nowrap;
}

.table-panel td {
    padding: 9px 13px;
    vertical-align: middle;
    font-size: .88rem;
    border-color: var(--color-border);
}

.table-panel tbody tr:hover td { background: var(--accent-bg); }

/* ORG-02: .admin-data-table JS arama hook'u — stil .table-panel'den geliyor */
.admin-data-table thead th { /* .table-panel ile aynı — admin JS arama için kimlik sınıfı */ }


/* ════════════════════════════════════════════════
   4. BOŞ DURUM — .empty-state
   ════════════════════════════════════════════════ */

.empty-state {
    text-align: center;
    padding: 2.5rem 1rem;
    color: var(--color-muted);
}

.empty-state-icon {
    display: block;
    font-size: 2.4rem;
    margin-bottom: .75rem;
    color: #C0C0C0;
}

.empty-state p { font-size: .9rem; margin-bottom: .75rem; }


/* ════════════════════════════════════════════════
   5. KÜÇÜK BUTON — .btn-xs
   Bootstrap'te bulunmuyor, her iki panelde yaygın.
   ════════════════════════════════════════════════ */

.btn-xs {
    padding: 2px 8px;
    font-size: .73rem;
    line-height: 1.5;
    border-radius: 4px;
}


/* ════════════════════════════════════════════════
   6. DURUM BADGE'LERİ — .badge-*
   Sipariş, ödeme, destek ve müşteri durum etiketleri.
   ════════════════════════════════════════════════ */

/* Taban badge stili — tekrarı önler */
[class^="badge-"],
[class*=" badge-"] {
    padding: 3px 10px;
    border-radius: 20px;
    font-size: .75rem;
    font-weight: 600;
    display: inline-block;
    white-space: nowrap;
}

/* Renk tanımları */
.badge-beklemede         { background: var(--color-bg-light); color: var(--color-muted); }
.badge-onaylandi         { background: var(--accent-bg);      color: var(--accent-dark); }
.badge-uretimde          { background: #E8F0FB; color: #1A4EA6; }
.badge-sevkiyatta        { background: #FFF3E0; color: #E65100; }
.badge-teslim_edildi     { background: var(--accent-bg);      color: var(--accent-dark); }
.badge-iptal             { background: #FFEBEB; color: #A32D2D; }
.badge-proforma_gonderildi,
.badge-odeme_bekleniyor  { background: #FFF8E1; color: #8B6200; }
.badge-odeme_alindi      { background: var(--accent-bg);      color: var(--accent-dark); }
.badge-bekliyor          { background: #FFF8E1; color: #8B6200; }
.badge-reddedildi        { background: #FFEBEB; color: #A32D2D; }
.badge-acik              { background: #E8F0FB; color: #1A4EA6; }
.badge-incelemede        { background: #FFF8E1; color: #8B6200; }
.badge-cozuldu,
.badge-kapandi           { background: var(--color-bg-light); color: var(--color-muted); }
.badge-aktif             { background: var(--accent-bg);      color: var(--accent-dark); }
.badge-pasif             { background: var(--color-bg-light); color: var(--color-muted); }


/* ════════════════════════════════════════════════
   7. SİPARİŞ DURUM ÇUBUĞU — .siparis-durum-bar
   ════════════════════════════════════════════════ */

.siparis-durum-bar { margin: 1rem 0; }

.durum-step {
    display: flex;
    align-items: center;
    gap: .5rem;
    padding: .4rem 0;
    font-size: .83rem;
    color: var(--color-muted);
}
.durum-step.active { color: var(--accent); font-weight: 600; }
.durum-step.done   { color: var(--color-text); }

.durum-dot {
    width: 10px; height: 10px; border-radius: 50%;
    background: var(--color-border); flex-shrink: 0;
}
.durum-step.active .durum-dot { background: var(--accent); box-shadow: 0 0 0 3px rgba(39,176,69,.2); }
.durum-step.done   .durum-dot { background: var(--color-text); }


/* ════════════════════════════════════════════════
   8. ÖDEME BANKA KUTUSU — .odeme-banka-kutu
   ════════════════════════════════════════════════ */

.odeme-banka-kutu {
    background: var(--accent-bg);
    border: 1px solid var(--accent);
    border-radius: 8px;
    padding: 1rem 1.25rem;
    margin-bottom: 1.25rem;
    font-size: .88rem;
}


/* ════════════════════════════════════════════════
   9. SIDEBAR OVERLAY — .sidebar-overlay / .sidebar-toggle
   Admin ve panel layout'larında ortak kullanılır.
   ════════════════════════════════════════════════ */

.sidebar-overlay {
    display: none;
    position: fixed; inset: 0;
    background: rgba(0,0,0,.5);
    z-index: 99;
}

.sidebar-overlay.open,
.sidebar-overlay.show { display: block; }

.sidebar-toggle {
    background: none;
    border: none;
    color: #fff;
    font-size: 1.3rem;
    cursor: pointer;
    padding: .3rem .5rem;
    display: none;
}

@media (max-width: 992px) {
    .sidebar-toggle { display: inline-flex; align-items: center; }
}


/* ════════════════════════════════════════════════
   10. FLASH MESAJLARI — .panel-flash-*
   ════════════════════════════════════════════════ */

.panel-flash-success {
    background: var(--accent-bg);
    border: 1px solid var(--accent);
    color: var(--accent-dark);
    padding: 10px 16px;
    border-radius: 6px;
    margin-bottom: 1rem;
    font-weight: 500;
}

.panel-flash-error {
    background: #FFEBEB;
    border: 1px solid #f5c6c6;
    color: #A32D2D;
    padding: 10px 16px;
    border-radius: 6px;
    margin-bottom: 1rem;
    font-weight: 500;
}


/* ════════════════════════════════════════════════
   11. SAYFA BAŞLIĞI — .page-header
   ════════════════════════════════════════════════ */

.page-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1.25rem;
}

.page-header h2 {
    font-family: 'Barlow Condensed', sans-serif;
    font-size: 1.4rem; font-weight: 700;
    color: var(--color-text); margin: 0;
}


/* ════════════════════════════════════════════════
   12. TIMELINE — .timeline-item (sipariş geçmişi)
   ════════════════════════════════════════════════ */

.timeline-item { display: flex; gap: .75rem; margin-bottom: .75rem; }
.timeline-dot  { flex-shrink: 0; padding-top: .2rem; }


/* ════════════════════════════════════════════════
   13. TABLO ARAMA SONUÇ YOK
   ════════════════════════════════════════════════ */

.table-no-result { color: var(--color-muted); font-size: .85rem; }


/* ════════════════════════════════════════════════
   14. UTILITY CLASSES — CSS-04 inline style temizliği
   ════════════════════════════════════════════════ */

/* Font boyutları */
.fs-60r  { font-size: .60rem; }
.fs-65r  { font-size: .65rem; }
.fs-70r  { font-size: .70rem; }
.fs-78r  { font-size: .78rem; }
.fs-80r  { font-size: .80rem; }
.fs-84r  { font-size: .84rem; }
.fs-88r  { font-size: .88rem; }
.fs-90r  { font-size: .90rem; }
.fs-92r  { font-size: .92rem; }
.fs-13px { font-size: 13px; }
.fs-20px { font-size: 20px; }
.fs-icon-sm  { font-size: 2.5rem; }
.fs-icon-md  { font-size: 3rem; }

/* Opaklık */
.op-30 { opacity: .3; }

/* Renk — topbar / footer beyaz varyantları */
.text-white-20  { color: rgba(255,255,255,.20); }
.text-white-60  { color: rgba(255,255,255,.60); }
.text-white-65  { color: rgba(255,255,255,.65); }

/* Font ailesi */
.font-mono { font-family: monospace; }

/* Display yardımcıları (Bootstrap'ı tamamlar) */
.d-none-init { display: none; }   /* JS ile açılan alanlar için */

/* Progress bar yükseklikleri */
.progress-h8  { height: 8px; }
.progress-h10 { height: 10px; }

/* Tablo sütun genişlikleri */
.col-w-32   { width: 32px; }
.col-w-40   { width: 40px; }
.col-w-60   { width: 60px; }
.col-w-80   { width: 80px; }
.col-w-90   { width: 90px; }
.col-w-110  { width: 110px; }
.col-w-120  { width: 120px; }
.col-w-180  { width: 180px; }
.col-w-200  { min-width: 200px; }
.col-w-240  { width: 240px; }
.col-w-25p  { width: 25%; }
.col-w-28p  { width: 28%; }
.col-w-30p  { width: 30%; }
.col-w-35p  { width: 35%; }
.col-w-40p  { width: 40%; }
.col-w-10p  { width: 10%; }
.col-w-18p  { width: 18%; }

/* Thumbnail / görsel bileşenleri */
.thumb-blog {
    width: 56px; height: 42px;
    object-fit: cover;
    border-radius: 4px;
    border: 1px solid #dee2e6;
}
.thumb-blog-ph {
    width: 56px; height: 42px;
    background: #f0f0f0;
    border-radius: 4px;
    display: flex; align-items: center; justify-content: center;
}
.thumb-slider {
    width: 100px; height: 56px;
    object-fit: cover;
    border-radius: 4px;
    border: 1px solid #dee2e6;
}
.thumb-slider-ph {
    width: 100px; height: 56px;
    background: #f0f0f0;
    border-radius: 4px;
    display: flex; align-items: center; justify-content: center;
}
.thumb-urun {
    width: 80px; height: 80px;
    object-fit: cover;
    border-radius: 6px;
    border: 1px solid #ddd;
}
.thumb-urun-wrap { width: 90px; }
.thumb-urun-lg {
    width: 90px; height: 90px;
    object-fit: cover;
    border-radius: 6px;
    border: 1px solid #ddd;
}
.thumb-medya {
    width: 48px; height: 48px;
    object-fit: cover;
    border-radius: 4px;
    border: 1px solid #ddd;
}
.thumb-ekip {
    width: 44px; height: 44px;
    object-fit: cover;
    border-radius: 50%;
    border: 2px solid #e5e7eb;
}
.thumb-ekip-ph {
    width: 44px; height: 44px;
    border-radius: 50%;
    background: #e5e7eb;
    display: flex; align-items: center; justify-content: center;
}

/* Avatar daire */
.avatar-circle {
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
}

/* Topbar separator */
.topbar-sep { color: rgba(255,255,255,.2); }

/* Footer / layout footer copyright */
.layout-footer {
    text-align: center;
    padding: .75rem;
    font-size: 12px;
    color: #999;
}

/* Sidebar section header satır */
.sidebar-section-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

/* Hero / header alt metin */
.hero-subtitle {
    color: rgba(255,255,255,.65);
    margin-top: .5rem;
}
.hero-subtitle-mw {
    color: rgba(255,255,255,.65);
    margin-top: .5rem;
    max-width: 600px;
}

/* Hakkımızda bölüm etiket */
.section-label-green {
    font-size: 11px;
    font-weight: 700;
    color: #27B045;
    letter-spacing: 2px;
    text-transform: uppercase;
    display: block;
    margin-bottom: 10px;
}
.section-title-condensed {
    font-family: 'Barlow Condensed', sans-serif;
    font-size: 36px;
    font-weight: 700;
    color: #2B2B2B;
    margin: 0;
}
.section-title-row {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    flex-wrap: wrap;
    gap: 12px;
}

/* İletişim adres metni */
.contact-address-text {
    margin: 0;
    color: var(--color-text);
    font-size: .9rem;
}

/* Auth link */
.link-plain      { text-decoration: none !important; }
.link-plain:hover { text-decoration: none !important; }
.link-plain-muted { color: #999; text-decoration: none !important; }

/* Truncate max-width */
.truncate-220 { max-width: 220px; }
.truncate-280 { max-width: 280px; }
.truncate-80p { max-width: 80%; }

/* İkon devre dışı / boş durum */
.empty-icon    { font-size: 3rem;   opacity: .3; }
.empty-icon-sm { font-size: 2.5rem; opacity: .3; }

/* Medya grid oran */
.media-grid-item    { aspect-ratio: 1; }
.media-preview-img  { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 4px; }

/* Monospace textarea/input */
.input-mono { font-family: monospace; }
.input-mono-sm { font-family: monospace; font-size: .85rem; }

/* Arama kutusu genişliği */
.search-w-180 { width: 180px; }
.search-w-240 { width: 240px; }

/* Cursor */
.cursor-grab    { cursor: grab; }
.cursor-pointer { cursor: pointer; }

/* Destek badge / küçük badge yardımcıları */
.badge-xs { font-size: .6rem; }
.badge-xs-pad { font-size: .65rem; padding: 2px 5px; }

/* Dropdown min-width */
.dropdown-min-180 { min-width: 180px; }

/* Hakkımızda bg section */
.bg-light-section { background: #F5F5F5; padding: 0; }

/* Z-index position yardımcısı */
.pos-rel-z1 { position: relative; z-index: 1; }

/* Navbar logo boyutu */
.navbar-logo { height: 48px; width: auto; display: block; }

/* Footer logo */
.footer-logo { height: 60px; width: auto; margin-bottom: 1rem; }

/* Auth logo */
.auth-logo { height: 64px; }

/* Form select max-width */
.select-max-110 { max-width: 110px; }

/* Odeme belgesi */
.payment-doc-img { max-height: 420px; object-fit: contain; border: 1px solid #dee2e6; }

/* Medya lightbox preview */
.media-lightbox-img { max-height: 300px; }

/* Destek chat max-width */
.chat-bubble-wrap { max-width: 80%; }

/* panel/layout.php - progress-h10 için margin */
.progress-h8-mt3  { height: 8px;  margin-top: 3px; }
.progress-h8-mt4  { height: 8px;  margin-top: 4px; }
.progress-h10-mt4 { height: 10px; margin-top: 4px; }

/* hakkımızda — ekip bağlantısı */
.link-green-sm { font-size: 13px; font-weight: 600; color: #27B045; text-decoration: none; }
.link-green-sm:hover { color: #1E8A35; }

/* ekip kartı — resim yüksekliği */
.img-h120 { height: 120px; }

/* Müşteri avatar */
.avatar-circle--primary {
    width: 64px; height: 64px;
    background: var(--bs-primary);
    color: #fff;
    font-size: 1.5rem;
    font-weight: 700;
}


/* ════════════════════════════════════════════════
   CSS-10: FLASH MESAJ ALIAS'LARI
   .flash-* (atamak.css) ve .panel-flash-* (eski shared.css) aynı stili
   paylaşır. Standart: .flash-success / .flash-error / .flash-info
   .panel-flash-* sınıfları geriye dönük uyumluluk için alias olarak kalır.
   ════════════════════════════════════════════════ */
.flash-success,
.panel-flash-success {
    background: var(--accent-bg);
    border: 1px solid var(--accent);
    color: var(--accent-dark);
    padding: 10px 16px;
    border-radius: 6px;
    margin-bottom: 1rem;
    font-weight: 500;
}
.flash-error,
.panel-flash-error {
    background: #FFEBEB;
    border: 1px solid #f5c6c6;
    color: #A32D2D;
    padding: 10px 16px;
    border-radius: 6px;
    margin-bottom: 1rem;
    font-weight: 500;
}
.flash-info {
    background: #E8F0FB;
    border: 1px solid #c0d4f5;
    color: #1A4EA6;
    padding: 10px 16px;
    border-radius: 6px;
    margin-bottom: 1rem;
    font-weight: 500;
}


/* ════════════════════════════════════════════════
   CSS-03: UTILITY SINIFLAR — inline style yerine
   ════════════════════════════════════════════════ */

/* Font boyutları */
.fs-70  { font-size: .70rem !important; }
.fs-75  { font-size: .75rem !important; }
.fs-80  { font-size: .80rem !important; }
.fs-85  { font-size: .85rem !important; }

/* Letter-spacing */
.ls-06 { letter-spacing: .06em !important; }

/* Beyaz-space */
.ws-nowrap { white-space: nowrap !important; }

/* Max-width yardımcıları */
.mw-110 { max-width: 110px !important; }
.mw-180 { max-width: 180px !important; }
.mw-280 { max-width: 280px !important; }
.mw-600 { max-width: 600px !important; }

/* Width yardımcıları */
.w-60px  { width: 60px !important; }
.w-110px { width: 110px !important; }
.w-180px { width: 180px !important; }

/* Progress-bar yüksekliği */
.progress-sm { height: 10px !important; }

/* Canvas max-height */
.chart-200 { max-height: 200px !important; }

/* Cursor */
.cur-pointer { cursor: pointer !important; }

/* Görsel önizleme */
.img-preview     { max-height: 120px; border-radius: 6px; }
.img-preview-lg  { max-height: 160px; border-radius: 6px; }
.img-zoom        { max-width: 100%; max-height: 80vh; border-radius: 4px; }

/* Display: none (JS toggle için) */
.d-none-init { display: none !important; }

/* Tablo içi etiket sütunu */
.td-label-45 { width: 45% !important; }
.td-label-40 { width: 40% !important; }


/* ════════════════════════════════════════════════
   CSS-03: KVKK / GENEL MODAL (site-wide)
   ════════════════════════════════════════════════ */
.site-modal-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,.55);
    z-index: 9999;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}
.site-modal-box {
    background: var(--color-bg, #fff);
    border-radius: 12px;
    max-width: 680px;
    width: 100%;
    max-height: 85vh;
    display: flex;
    flex-direction: column;
}
.site-modal-header {
    padding: 1.25rem 1.5rem;
    border-bottom: 1px solid var(--border, #e5e7eb);
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.site-modal-header h5 { margin: 0; font-size: 1.05rem; font-weight: 600; }
.site-modal-close {
    background: none;
    border: none;
    font-size: 1.4rem;
    line-height: 1;
    cursor: pointer;
    color: var(--muted, #6b7280);
}
.site-modal-body {
    padding: 1.5rem;
    overflow-y: auto;
    flex: 1;
    font-size: .9rem;
    line-height: 1.7;
}
.site-modal-footer {
    padding: 1rem 1.5rem;
    border-top: 1px solid var(--border, #e5e7eb);
    display: flex;
    gap: .75rem;
    justify-content: flex-end;
}
.site-modal-footer .btn-modal-cancel {
    padding: .5rem 1.25rem;
    border: 1px solid #d1d5db;
    background: #fff;
    border-radius: 6px;
    cursor: pointer;
    font-size: .9rem;
}
.site-modal-footer .btn-modal-confirm {
    padding: .5rem 1.25rem;
    background: var(--accent, #16a34a);
    color: #fff;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: .9rem;
}

/* Kurumsal block body padding */
.block-body-pad { padding: 16px 28px; }


/* ════════════════════════════════════════════════
   CSS-06: TABLO MOBİL YATAY KAYDIRMA
   Rapor: #CSS-06 | Admin + Panel tablo görünümü
   ════════════════════════════════════════════════ */
@media (max-width: 992px) {
    .table-panel-wrap {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }
}


/* ════════════════════════════════════════════════
   UI-10: SKELETON / LOADING STATE
   Rapor: #UI-10 | Admin dashboard + liste sayfaları
   ════════════════════════════════════════════════ */
@keyframes skeleton-shimmer {
    0%   { background-position: -400px 0; }
    100% { background-position: 400px 0; }
}

.skeleton {
    background: linear-gradient(90deg, #e8e8e8 25%, #f5f5f5 50%, #e8e8e8 75%);
    background-size: 800px 100%;
    animation: skeleton-shimmer 1.4s ease-in-out infinite;
    border-radius: 4px;
}

.skeleton-line {
    height: 14px;
    width: 100%;
    border-radius: 3px;
}

.skeleton-icon {
    width: 40px;
    height: 40px;
    border-radius: 8px;
}

/* stat-card içinde skeleton için min-height */
#dashboard-skeleton .stat-card {
    min-height: 88px;
    padding: 16px;
}

/* RES-05: Kategori açıklama bloğu — içerik genişliği güvenli sınır */
.aciklama-wrap {
    max-width: 860px;
    width: 100%;
}

/* ── PWA SW-UPDATE TOAST (SW-UPD-01) ────────────────────────────────────────
   Yeni service worker hazır olduğunda altta beliren "Güncelleme var" bantı.
   site.js içindeki showSwUpdateToast() tarafından enjekte edilir.
   Tüm layout'larda (site / admin / panel) ortak olduğu için shared.css'te.
   ─────────────────────────────────────────────────────────────────────────── */
.sw-update-toast {
    position: fixed;
    bottom: 1.25rem;
    left: 50%;
    transform: translateX(-50%) translateY(120%);
    z-index: 99999;
    background: #2B2B2B;
    color: #fff;
    border-radius: 10px;
    box-shadow: 0 4px 24px rgba(0,0,0,.28);
    display: flex;
    align-items: center;
    gap: .75rem;
    padding: .75rem 1rem .75rem 1.1rem;
    font-size: .84rem;
    font-weight: 500;
    white-space: nowrap;
    max-width: calc(100vw - 2rem);
    transition: transform .35s cubic-bezier(.34,1.56,.64,1);
    pointer-events: auto;
}

.sw-update-toast.visible {
    transform: translateX(-50%) translateY(0);
}

.sw-update-toast .sw-toast-icon {
    font-size: 1.1rem;
    color: #27B045;
    flex-shrink: 0;
}

.sw-update-toast .sw-toast-msg {
    flex: 1;
    overflow: hidden;
    text-overflow: ellipsis;
}

.sw-update-toast .sw-toast-btn {
    background: #27B045;
    color: #fff;
    border: none;
    border-radius: 6px;
    font-size: .78rem;
    font-weight: 700;
    padding: .35rem .8rem;
    cursor: pointer;
    white-space: nowrap;
    transition: background .15s;
    flex-shrink: 0;
}

.sw-update-toast .sw-toast-btn:hover {
    background: #1E8A35;
}

.sw-update-toast .sw-toast-close {
    background: none;
    border: none;
    color: rgba(255,255,255,.45);
    font-size: 1rem;
    line-height: 1;
    cursor: pointer;
    padding: 0 .1rem;
    flex-shrink: 0;
    transition: color .15s;
}

.sw-update-toast .sw-toast-close:hover {
    color: #fff;
}

@media (max-width: 575px) {
    .sw-update-toast {
        bottom: .75rem;
        border-radius: 8px;
        font-size: .8rem;
        gap: .5rem;
        padding: .65rem .75rem .65rem .9rem;
    }
}

/* ══════════════════════════════════════════════════════════════════
   PWA INSTALL BANNER
   Chrome/Edge için otomatik kurulum prompt banner'ı
   ══════════════════════════════════════════════════════════════════ */

@keyframes slideUp {
    from { transform: translateY(100%); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

#pwa-install-banner {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 9999;
    background: linear-gradient(135deg, #2d2926 0%, #3d3936 100%);
    box-shadow: 0 -4px 20px rgba(0,0,0,0.3);
    animation: slideUp 0.4s ease-out;
}

.install-banner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
    max-width: 800px;
    margin: 0 auto;
    gap: 16px;
}

.install-banner-content {
    display: flex;
    align-items: center;
    gap: 12px;
    flex: 1;
}

.install-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    flex-shrink: 0;
}

.install-text {
    flex: 1;
}

.install-text strong {
    color: #fff;
    font-size: 16px;
    font-weight: 600;
    display: block;
    margin-bottom: 2px;
}

.install-text p {
    color: rgba(255,255,255,0.8);
    font-size: 13px;
    margin: 0;
}

.install-buttons {
    display: flex;
    gap: 8px;
    align-items: center;
    flex-shrink: 0;
}

.btn-install {
    background: #00a84f;
    color: #fff;
    border: none;
    padding: 10px 24px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.2s;
    white-space: nowrap;
}

.btn-install:hover {
    background: #009645;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0,168,79,0.3);
}

.btn-install:active {
    transform: translateY(0);
}

.btn-dismiss {
    background: transparent;
    color: rgba(255,255,255,0.6);
    border: none;
    font-size: 28px;
    line-height: 1;
    padding: 0 8px;
    cursor: pointer;
    transition: color 0.2s;
}

.btn-dismiss:hover {
    color: #fff;
}

/* ══════════════════════════════════════════════════════════════════
   iOS SAFARI INSTALL GUIDE BANNER
   iOS'ta manuel kurulum rehberi
   ══════════════════════════════════════════════════════════════════ */

#ios-install-banner {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 9999;
    background: linear-gradient(135deg, #007aff 0%, #0051d5 100%);
    box-shadow: 0 -4px 20px rgba(0,0,0,0.3);
    animation: slideUp 0.4s ease-out;
}

.ios-banner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
    max-width: 800px;
    margin: 0 auto;
    gap: 12px;
}

.ios-icon {
    flex-shrink: 0;
}

.ios-icon img {
    width: 48px;
    height: 48px;
    border-radius: 12px;
}

.ios-text {
    flex: 1;
    color: #fff;
}

.ios-text strong {
    font-size: 16px;
    font-weight: 600;
    display: block;
    margin-bottom: 4px;
}

.ios-text p {
    font-size: 13px;
    margin: 0;
    line-height: 1.5;
    opacity: 0.95;
}

.ios-share-icon {
    display: inline-block;
    font-size: 16px;
    margin: 0 4px;
    vertical-align: middle;
}

.ios-dismiss {
    background: rgba(255,255,255,0.2);
    color: #fff;
    border: none;
    font-size: 24px;
    line-height: 1;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    cursor: pointer;
    transition: background 0.2s;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.ios-dismiss:hover {
    background: rgba(255,255,255,0.3);
}

/* ══════════════════════════════════════════════════════════════════
   RESPONSIVE - MOBILE
   ══════════════════════════════════════════════════════════════════ */

@media (max-width: 575px) {
    .install-banner {
        flex-direction: column;
        gap: 12px;
        padding: 16px;
    }
    
    .install-banner-content {
        width: 100%;
    }
    
    .install-buttons {
        width: 100%;
        justify-content: space-between;
    }
    
    .btn-install {
        flex: 1;
    }
    
    .ios-banner {
        flex-wrap: wrap;
    }
    
    .ios-text {
        flex-basis: calc(100% - 100px);
    }
}

@media (max-width: 375px) {
    .install-text strong {
        font-size: 15px;
    }
    
    .install-text p {
        font-size: 12px;
    }
    
    .btn-install {
        font-size: 13px;
        padding: 9px 20px;
    }
    
    .ios-text strong {
        font-size: 15px;
    }
    
    .ios-text p {
        font-size: 12px;
    }
}
