/* ============================================================================
   chari-chips.css — HERO FILTER GRID, QUICK CHIPS & NAV (Batch 17 Addendum)
   ----------------------------------------------------------------------------
   Struktur layout seimbang bebas orphan:
   1. Scope Box: 6-kolom CSS grid simetris full-width
      - Baris 1: 3 tombol (:nth-child -n+3) span 2 kolom (33.3% tiap tombol)
      - Baris 2: 2 tombol (:nth-child n+4) span 3 kolom (50% tiap tombol)
      - Tepi kiri-kanan rata sempurna ke batas piksel (zero dead space).
   2. Quick Tags: 4 kolom sejajar rata (1 baris desktop, 2x2 mobile).
   3. Nav Pills: white-space nowrap & tinggi seragam (30px).
============================================================================ */

.ch-scope-container {
    padding: 8px;
    border-radius: 16px;
    background: rgba(12, 10, 9, 0.7);
    border: 1px solid rgba(229, 193, 88, 0.25);
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(12px);
    width: 100%;
}

.ch-scope-grid-6 {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 6px;
    width: 100%;
}

.ch-scope-grid-6 > :nth-child(-n+3) {
    grid-column: span 2 / span 2;
}

.ch-scope-grid-6 > :nth-child(n+4) {
    grid-column: span 3 / span 3;
}

button[id^="tab-scope-"] {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 6px !important;
    height: 40px !important;
    padding: 0 12px !important;
    border-radius: 12px !important;
    font-size: 11px !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    width: 100% !important;
    transition: all 0.2s ease !important;
}

.ch-quick-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 8px;
    font-size: 11px;
    width: 100%;
}

.ch-quick-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 34px;
    padding: 0 8px;
    border-radius: 10px;
    font-size: 11px;
    font-weight: 500;
    white-space: nowrap;
    text-align: center;
    background: rgba(28, 25, 23, 0.8);
    border: 1px solid #292524;
    color: #e7e5e4;
    transition: all 0.2s ease;
}

.ch-quick-btn:hover {
    background: rgba(229, 193, 88, 0.1);
    border-color: rgba(229, 193, 88, 0.3);
    color: #fff;
}

.ch-quick-btn.active {
    border-color: rgba(229, 193, 88, 0.4);
    color: #E5C158;
    font-weight: 600;
    background: rgba(229, 193, 88, 0.08);
}

.ch-nav-pills > a {
    white-space: nowrap;
    flex-shrink: 0;
    min-height: 30px;
}

@media (max-width: 640px) {
    .ch-scope-grid-6 {
        grid-template-columns: 1fr;
    }
    .ch-scope-grid-6 > * {
        grid-column: span 1 / span 1 !important;
    }
    .ch-quick-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}
