/* ===========================================
   FILTER STYLES - Home Page
   Design for the search and filter bar
   =========================================== */

.menu-search form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    padding: 1rem 0;
}

/* Horizontal Filter Group */
.filter-group {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    gap: 1rem;
    background: rgba(40, 40, 40, 0.4);
    backdrop-filter: blur(8px);
    padding: 1.25rem;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    margin: 0 auto;
    width: 90%;
    max-width: 1200px;
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
}

/* Individual Filter Items */
.genre-filter, 
.director-filter, 
.age-rating-filter {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    flex: 1;
    min-width: 180px;
}

.filter-group label {
    font-size: 0.75rem;
    font-weight: 600;
    color: #b3b3b3;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding-left: 0.25rem;
}

/* Premium Select Styling */
.filter-group select {
    width: 100%;
    padding: 0.6rem 1rem;
    background-color: rgba(60, 60, 60, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    color: #fff;
    font-size: 0.9rem;
    outline: none;
    cursor: pointer;
    transition: all 0.2s ease;
    appearance: none; /* Remove default arrow */
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    padding-right: 2.5rem;
}

.filter-group select:hover {
    background-color: rgba(80, 80, 80, 0.8);
    border-color: rgba(255, 255, 255, 0.3);
}

.filter-group select:focus {
    border-color: #fff;
    box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.1);
}

/* Action Buttons */
.filter-buttons {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding-bottom: 2px; /* Align with inputs */
}

.filter-buttons button {
    padding: 0.6rem 1.5rem;
    background-color: #fff;
    color: #000;
    border: none;
    border-radius: 8px;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.filter-buttons button:hover {
    background-color: #e5e5e5;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(255, 255, 255, 0.2);
}

.filter-buttons button:active {
    transform: translateY(0);
}

.clear-filters {
    color: #b3b3b3;
    text-decoration: none;
    font-size: 0.85rem;
    transition: color 0.2s ease;
    white-space: nowrap;
}

.clear-filters:hover {
    color: #fff;
    text-decoration: underline;
}

/* Search Input Adjustment */
.search-principal-container {
    max-width: 600px;
    margin-top: 2rem !important;
    margin-bottom: 0 !important;
    margin-left: auto !important;
    margin-right: auto !important;
}

/* Responsive Design */
@media (max-width: 992px) {
    .filter-group {
        width: 95%;
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 768px) {
    .filter-group {
        flex-direction: column;
        align-items: stretch;
    }
    
    .filter-buttons {
        justify-content: space-between;
        margin-top: 0.5rem;
    }
    
    .genre-filter, 
    .director-filter, 
    .age-rating-filter {
        min-width: 100%;
    }
}
