/* ========================================
   FILTER SIDEBAR
   Styles for the technique filter sidebar on the Launch Pad
   ======================================== */

/* ========================================
   CSS VARIABLES (use brand.css values)
   ======================================== */
:root {
    --primary: #022662;
    --secondary: #f68b1f;
    --accent-light: #e7f0fb;
    --highlight: #fff1e6;
    --text: #363636;
}

/* ========================================
   CONTENT WRAPPER - Sidebar + Main
   ======================================== */
.content-wrapper {
    display: block;
    padding-left: 280px;
}

/* ========================================
   FILTER SIDEBAR
   ======================================== */
.filter-sidebar {
    width: 280px;
    padding: 24px 16px;
    background: #fff;
    border-right: 1px solid #e0e0e0;
    height: calc(100vh - 115px);
    overflow-y: auto;
    position: fixed;
    top: 115px;
    left: 0;
    z-index: 100;
    box-sizing: border-box;
}

.filter-sidebar__header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.filter-sidebar__header h2 {
    font-size: 18px;
    font-weight: 700;
    color: var(--primary);
}

.filter-sidebar__clear {
    font-size: 12px;
    color: var(--secondary);
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px 8px;
    border-radius: 4px;
}

.filter-sidebar__clear:hover {
    background: #fff1e6;
}

/* ========================================
   ACTIVE FILTERS CHIPS
   ======================================== */
.filter-sidebar__active {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 16px;
    min-height: 32px;
}

.filter-chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 8px 4px 12px;
    background: var(--secondary);
    color: white;
    border-radius: 16px;
    font-size: 12px;
    font-weight: 500;
}

.filter-chip__remove {
    background: rgba(255, 255, 255, 0.3);
    border: none;
    color: white;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 12px;
    line-height: 1;
}

/* ========================================
   FILTER GROUPS
   ======================================== */
.filter-group {
    margin-bottom: 16px;
}

.filter-group__toggle {
    width: 100%;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 8px;
    background: none;
    border: none;
    font-size: 14px;
    font-weight: 600;
    color: var(--text);
    cursor: pointer;
    text-align: left;
    border-radius: 4px;
}

.filter-group__toggle:hover {
    background: var(--accent-light);
}

.filter-group__icon {
    font-size: 10px;
    width: 12px;
    transition: transform 0.2s;
}

.filter-group.is-expanded .filter-group__icon {
    transform: rotate(90deg);
}

.filter-group__count {
    margin-left: auto;
    font-size: 12px;
    color: #999;
    font-weight: 400;
}

.filter-group__options {
    padding-left: 20px;
    margin-top: 8px;
}

.filter-group__options--always-open {
    display: block !important;
}

/* ========================================
   FILTER OPTIONS
   ======================================== */
.filter-option {
    display: flex;
    align-items: center;
    padding: 6px 8px;
    cursor: pointer;
    border-radius: 4px;
    font-size: 13px;
}

.filter-option:hover {
    background: var(--accent-light);
}

.filter-option--sub {
    padding-left: 24px;
    font-size: 12px;
}

.filter-option input[type="checkbox"] {
    margin-right: 8px;
    cursor: pointer;
}

.filter-count {
    margin-left: auto;
    font-size: 11px;
    color: #999;
}

.filter-sidebar__divider {
    margin: 20px 0;
    border: none;
    border-top: 1px solid #e0e0e0;
}

.filter-sidebar__subheading {
    font-size: 14px;
    font-weight: 600;
    color: var(--primary);
    margin-bottom: 12px;
    padding-left: 8px;
}

/* ========================================
   MOBILE FILTERS
   ======================================== */
.mobile-filters {
    display: none;
    padding: 16px 20px;
    background: #fff;
    border-bottom: 1px solid #e0e0e0;
    margin: -40px -20px 20px;
}

.mobile-filters__toggle {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    background: var(--primary);
    color: white;
    border: none;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    width: 100%;
    justify-content: center;
}

.filter-badge {
    background: var(--secondary);
    color: white;
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 11px;
    margin-left: 4px;
}

/* ========================================
   HIDDEN AND NO RESULTS
   ======================================== */
.sample-card.is-hidden {
    display: none !important;
}

.no-results {
    grid-column: 1 / -1;
    text-align: center;
    padding: 60px 20px;
    color: #999;
}

.no-results__icon {
    font-size: 48px;
    margin-bottom: 16px;
}

.no-results__text {
    font-size: 18px;
    margin-bottom: 8px;
}

.no-results__hint {
    font-size: 14px;
    color: #bbb;
}

/* ========================================
   RESPONSIVE - MOBILE
   ======================================== */
@media (max-width: 768px) {
    .content-wrapper {
        padding-left: 0;
    }

    .filter-sidebar {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: auto;
        max-height: 70vh;
        border-right: none;
        border-bottom: 1px solid #e0e0e0;
        z-index: 1000;
        transform: translateY(-100%);
        transition: transform 0.3s ease;
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    }

    .filter-sidebar.is-open {
        transform: translateY(0);
    }

    .mobile-filters {
        display: block;
    }

    .launch-content {
        padding-top: 0;
    }
}
