/* ════════════════════════════════════════════════════════════════
   STICKY PROGRESS BAR — Bölüm göstergesi (modüler eklenti)
   ────────────────────────────────────────────────────────────────
   Ekleme/çıkarma:
   - Çıkarmak için: header.php'den <link> satırını ve sticky-bar.js
     <script> satırını sil + bu dosyayı + sticky-bar.js'i sil.
   - Mevcut sayfa CSS/JS'ine HİÇ DOKUNMUYOR. Tüm sınıf adları
     "stkbar-" önekli — çakışma yok.
   ════════════════════════════════════════════════════════════════ */

#stkbar {
    position: fixed;
    top: 81px;                  /* header altında (desktop) */
    left: 0;
    right: 0;
    z-index: 990;                /* header'dan altta (header ~1000) */
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border-bottom: 1px solid #e2e8f0;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.04);
    /* Başlangıçta GİZLİ — JS scroll ile açar */
    transform: translateY(-100%);
    opacity: 0;
    pointer-events: none;
    transition: transform 0.3s ease, opacity 0.25s ease;
}

#stkbar.stkbar-aktif {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
}

.stkbar-icerik {
    max-width: 1100px;
    margin: 0 auto;
    display: flex;
    gap: 6px;
    padding: 8px 16px;
    overflow-x: auto;
    scrollbar-width: none;     /* Firefox */
}
.stkbar-icerik::-webkit-scrollbar { display: none; }   /* WebKit */

.stkbar-tab {
    flex: 1;
    min-width: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    padding: 8px 14px;
    background: transparent;
    border: 1.5px solid transparent;
    border-radius: 8px;
    color: #475569;
    font-family: inherit;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.18s ease;
    white-space: nowrap;
    text-decoration: none;
}

.stkbar-tab:hover,
.stkbar-tab:focus {
    background: #f1f5f9;
    color: #1e293b;
    text-decoration: none;       /* alt çizgi çıkmasın */
}

.stkbar-tab.stkbar-aktif-tab {
    background: #eff6ff;
    border-color: #bfdbfe;
    color: #1d4ed8;
}

/* Her tab için kendi vurgu rengi */
.stkbar-tab[data-hedef="kart-yazili-kagidi-teslim-tutanagi"].stkbar-aktif-tab {
    background: #eff6ff;
    border-color: #bfdbfe;
    color: #1d4ed8;
}
.stkbar-tab[data-hedef="kart-ders-kesim-raporu"].stkbar-aktif-tab {
    background: #f5f3ff;
    border-color: #ddd6fe;
    color: #6d28d9;
}

.stkbar-ikon {
    font-size: 15px;
    line-height: 1;
    flex-shrink: 0;
}

.stkbar-etiket {
    overflow: hidden;
    text-overflow: ellipsis;
}

/* ───── Mobil — kompakt görünüm ───── */
@media (max-width: 640px) {
    #stkbar {
        top: 68px;              /* mobil header altında */
    }
    .stkbar-icerik {
        padding: 6px 10px;
        gap: 4px;
    }
    .stkbar-tab {
        padding: 7px 10px;
        font-size: 12px;
    }
    .stkbar-ikon {
        font-size: 14px;
    }
}

/* Çok dar mobilde etiketleri kısalt */
@media (max-width: 380px) {
    .stkbar-etiket-uzun { display: none; }
    .stkbar-etiket-kisa { display: inline; }
}
@media (min-width: 381px) {
    .stkbar-etiket-uzun { display: inline; }
    .stkbar-etiket-kisa { display: none; }
}
