/* ============================================
   REVVEDUPCARS - FINAL FIXES
   Version: 1.0.0
   ============================================ */

/* ============================================
   1. SEARCH BUTTON - CLEAN MODERN LOOK
   ============================================ */

/* Hide any stray search buttons or text */
.revved-header-search,
.header-search-btn,
.search-toggle,
button.search-icon,
.search-popup,
#search-popup,
.search-overlay {
    display: none !important;
}

/* The actual search form */
.revved-header-search {
    position: relative !important;
}

.revved-search-form {
    display: flex !important;
    align-items: center !important;
    background: #f5f5f5 !important;
    border-radius: 25px !important;
    overflow: hidden !important;
    border: 2px solid transparent !important;
    transition: all 0.25s ease !important;
}

.revved-search-form:focus-within {
    background: #fff !important;
    border-color: #C5D631 !important;
    box-shadow: 0 0 0 4px rgba(197, 214, 49, 0.15) !important;
}

.revved-search-input {
    border: none !important;
    background: transparent !important;
    padding: 10px 16px !important;
    font-size: 14px !important;
    width: 160px !important;
    outline: none !important;
    color: #333 !important;
}

.revved-search-input::placeholder {
    color: #999 !important;
}

.revved-search-btn {
    background: transparent !important;
    border: none !important;
    padding: 10px 14px !important;
    cursor: pointer !important;
    color: #666 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    transition: color 0.2s !important;
}

.revved-search-btn:hover {
    color: #C5D631 !important;
}

.revved-search-btn svg {
    width: 18px !important;
    height: 18px !important;
    stroke: currentColor !important;
}

/* Dark mode search */
[data-theme="dark"] .revved-search-form {
    background: #2a2a2a !important;
}

[data-theme="dark"] .revved-search-input {
    color: #e0e0e0 !important;
}

[data-theme="dark"] .revved-search-btn {
    color: #999 !important;
}

/* ============================================
   2. ARCHIVE HEADER - COMPACT
   ============================================ */

.archive-header {
    background: linear-gradient(135deg, #1a1f1a 0%, #2d332d 100%) !important;
    padding: 16px 20px !important;
    margin-bottom: 16px !important;
    display: flex !important;
    flex-wrap: wrap !important;
    align-items: center !important;
    gap: 8px 16px !important;
}

.archive-header .breadcrumb {
    width: 100% !important;
    font-size: 12px !important;
    color: rgba(255,255,255,0.6) !important;
    margin: 0 0 4px 0 !important;
}

.archive-header .breadcrumb a {
    color: rgba(255,255,255,0.8) !important;
    text-decoration: none !important;
}

.archive-header .breadcrumb a:hover {
    color: #C5D631 !important;
}

.archive-header .breadcrumb .sep {
    margin: 0 6px !important;
    opacity: 0.5 !important;
}

.archive-header .archive-title {
    color: #fff !important;
    font-size: 1.5rem !important;
    font-weight: 700 !important;
    margin: 0 !important;
}

.archive-header .archive-desc,
.archive-header .subcategory-tabs {
    display: none !important;
}

/* ============================================
   3. CATEGORY FILTER PILLS - VISIBLE
   ============================================ */

.category-filter-bar {
    display: flex !important;
    flex-wrap: wrap !important;
    align-items: center !important;
    gap: 8px !important;
    padding: 14px 16px !important;
    margin: 0 0 20px 0 !important;
    background: #fff !important;
    border-radius: 10px !important;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06) !important;
    border: 1px solid #eee !important;
    position: sticky !important;
    top: 70px !important;
    z-index: 99 !important;
}

.category-filter-bar .filter-label {
    font-size: 12px !important;
    font-weight: 600 !important;
    color: #888 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.5px !important;
    margin-right: 4px !important;
}

.category-filter-bar .filter-pill {
    display: inline-flex !important;
    align-items: center !important;
    gap: 5px !important;
    padding: 7px 14px !important;
    background: #f5f5f5 !important;
    color: #444 !important;
    border: 1px solid #e0e0e0 !important;
    border-radius: 20px !important;
    font-size: 13px !important;
    font-weight: 500 !important;
    cursor: pointer !important;
    transition: all 0.2s ease !important;
    white-space: nowrap !important;
}

.category-filter-bar .filter-pill:hover {
    border-color: #C5D631 !important;
    background: #fafcf0 !important;
}

.category-filter-bar .filter-pill.active {
    background: #C5D631 !important;
    color: #1a1f1a !important;
    border-color: #C5D631 !important;
    font-weight: 600 !important;
}

.category-filter-bar .filter-pill .count {
    font-size: 11px !important;
    background: rgba(0,0,0,0.08) !important;
    padding: 2px 6px !important;
    border-radius: 10px !important;
    margin-left: 2px !important;
}

.category-filter-bar .filter-pill.active .count {
    background: rgba(0,0,0,0.12) !important;
}

/* Dark mode filter bar */
[data-theme="dark"] .category-filter-bar {
    background: #1e1e1e !important;
    border-color: #333 !important;
}

[data-theme="dark"] .category-filter-bar .filter-pill {
    background: #2a2a2a !important;
    color: #ccc !important;
    border-color: #444 !important;
}

[data-theme="dark"] .category-filter-bar .filter-pill:hover {
    border-color: #C5D631 !important;
}

[data-theme="dark"] .category-filter-bar .filter-pill.active {
    background: #C5D631 !important;
    color: #1a1f1a !important;
}

/* Article filtering */
.article-card.hidden {
    display: none !important;
}

/* Responsive */
@media (max-width: 768px) {
    .archive-header {
        padding: 12px 16px !important;
    }
    
    .archive-header .archive-title {
        font-size: 1.25rem !important;
    }
    
    .category-filter-bar {
        flex-wrap: nowrap !important;
        overflow-x: auto !important;
        -webkit-overflow-scrolling: touch !important;
        scrollbar-width: none !important;
        top: 60px !important;
    }
    
    .category-filter-bar::-webkit-scrollbar {
        display: none !important;
    }
    
    .category-filter-bar .filter-pill {
        flex-shrink: 0 !important;
    }
}
