/**
 * ==================================================================================
 * MOBILE-VIDEO-FILTER.CSS - Styles for the mobile filter and view switcher.
 * ==================================================================================
 */

/* Hide the mobile filter container by default (for desktop) */
#mobile-video-filter-container {
    display: none;
}

/* This class is the main container for the sticky component */
.mobile-video-filter-container {
    /* Styles are applied via a media query in grid.css */
}

.mobile-controls-wrapper {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.filter-dropdown {
    position: relative;
    flex-grow: 1; /* Allow filter to take up available space */
}

.filter-header {
    width: 100%;
    padding: 0.75rem 1rem;
    font-size: 1rem;
    font-weight: 600;
    color: #cbd5e1;
    background-color: rgba(31, 41, 55, 0.7);
    border: 1px solid rgba(100, 116, 139, 0.4);
    border-radius: 0.5rem;
    cursor: pointer;
    backdrop-filter: blur(5px);
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: background-color 0.2s ease;
}

.filter-arrow {
    transition: transform 0.3s ease;
}

.filter-dropdown.is-open .filter-arrow {
    transform: rotate(180deg);
}

.filter-options {
    display: none; /* Hidden by default */
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    margin-top: 0.5rem;
    background-color: #1f2937;
    border: 1px solid rgba(100, 116, 139, 0.4);
    border-radius: 0.5rem;
    overflow: hidden;
    box-shadow: 0 10px 20px rgba(0,0,0,0.4);
    z-index: 11; /* Ensure it's above other content */
}

.filter-dropdown.is-open .filter-options {
    display: block; /* Show when open */
}

.filter-option-btn {
    display: block;
    width: 100%;
    padding: 0.75rem 1rem;
    text-align: left;
    font-size: 1rem;
    color: #cbd5e1;
    background-color: transparent;
    border: none;
    border-bottom: 1px solid rgba(100, 116, 139, 0.2);
    cursor: pointer;
}

.filter-option-btn:last-child {
    border-bottom: none;
}

.filter-option-btn:hover {
    background-color: rgba(55, 65, 81, 0.7);
}

.filter-option-btn.active {
    background-color: #38bdf8;
    color: #0B0B0F;
    font-weight: 700;
}

/* --- Mobile View Switcher Styles --- */
.mobile-view-switcher {
    flex-shrink: 0; /* Prevent switcher from shrinking */
    padding: 0.75rem;
    background-color: rgba(31, 41, 55, 0.7);
    border: 1px solid rgba(100, 116, 139, 0.4);
    border-radius: 0.5rem;
    color: white;
    cursor: pointer;
    backdrop-filter: blur(5px);
}

