/* Mobile Filter Modal Styles */
.mobile-filter-toggle {
    display: none;
    margin-bottom: 2rem;
}

.filter-toggle-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 12px;
    padding: 0.75rem 1.5rem;
    color: rgba(255, 255, 255, 0.9);
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    width: 100%;
    justify-content: center;
    position: relative;
}

.filter-toggle-btn:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(212, 175, 55, 0.5);
    color: #d4af37;
}

.filter-count {
    background: #d4af37;
    color: #000;
    border-radius: 12px;
    padding: 0.25rem 0.5rem;
    font-size: 0.75rem;
    font-weight: 600;
    min-width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Filter Modal */
.filter-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(10px);
    z-index: 9999;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.filter-modal.active {
    opacity: 1;
    visibility: visible;
}

.filter-modal-content {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--bg-primary);
    border-radius: 20px 20px 0 0;
    max-height: 80vh;
    overflow-y: auto;
    transform: translateY(100%);
    transition: transform 0.3s ease;
}

.filter-modal.active .filter-modal-content {
    transform: translateY(0);
}

.filter-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.5rem 2rem 1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    position: sticky;
    top: 0;
    background: var(--bg-primary);
    backdrop-filter: blur(20px);
}

.filter-modal-title {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--text-primary);
    margin: 0;
}

.filter-modal-close {
    background: none;
    border: none;
    color: rgba(255, 255, 255, 0.6);
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.filter-modal-close:hover {
    color: #d4af37;
    background: rgba(255, 255, 255, 0.1);
}

.filter-modal-body {
    padding: 2rem;
}

.mobile-filter-section {
    margin-bottom: 2rem;
}

.mobile-filter-section:last-child {
    margin-bottom: 0;
}

.mobile-filter-label {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 1rem;
    display: block;
}

.mobile-filter-options {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.mobile-filter-btn {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 25px;
    padding: 0.75rem 1.25rem;
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.3s ease;
    min-height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.mobile-filter-btn:hover,
.mobile-filter-btn.active {
    background: linear-gradient(135deg, #d4af37, #f0d080);
    border-color: #d4af37;
    color: #000;
}

.filter-modal-footer {
    padding: 1.5rem 2rem 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    gap: 1rem;
}

.filter-apply-btn,
.filter-clear-btn {
    flex: 1;
    padding: 0.875rem 1.5rem;
    border-radius: 12px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    min-height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.filter-apply-btn {
    background: linear-gradient(135deg, #d4af37, #f0d080);
    border: none;
    color: #000;
}

.filter-apply-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(212, 175, 55, 0.4);
}

.filter-clear-btn {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: rgba(255, 255, 255, 0.9);
}

.filter-clear-btn:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.3);
}

/* Light theme adjustments */
[data-theme="light"] .filter-toggle-btn {
    background: rgba(0, 0, 0, 0.05);
    border-color: rgba(0, 0, 0, 0.1);
    color: rgba(0, 0, 0, 0.8);
}

[data-theme="light"] .filter-toggle-btn:hover {
    background: rgba(212, 175, 55, 0.1);
    border-color: rgba(212, 175, 55, 0.3);
    color: #d4af37;
}

[data-theme="light"] .filter-modal-header,
[data-theme="light"] .filter-modal-body,
[data-theme="light"] .filter-modal-footer {
    border-color: rgba(0, 0, 0, 0.1);
}

[data-theme="light"] .filter-modal-close {
    color: rgba(0, 0, 0, 0.6);
}

[data-theme="light"] .filter-modal-close:hover {
    background: rgba(0, 0, 0, 0.1);
}

[data-theme="light"] .mobile-filter-btn {
    background: rgba(0, 0, 0, 0.05);
    border-color: rgba(0, 0, 0, 0.1);
    color: rgba(0, 0, 0, 0.8);
}

[data-theme="light"] .filter-clear-btn {
    background: rgba(0, 0, 0, 0.05);
    border-color: rgba(0, 0, 0, 0.1);
    color: rgba(0, 0, 0, 0.8);
}

[data-theme="light"] .filter-clear-btn:hover {
    background: rgba(0, 0, 0, 0.1);
    border-color: rgba(0, 0, 0, 0.2);
}

/* Mobile responsiveness */
@media (max-width: 768px) {
    .mobile-filter-toggle {
        display: block;
        margin: 0;
    }
    
    .desktop-filters {
        display: none;
    }
    
    .filter-modal-header {
        padding: 1.25rem 1.5rem 0.75rem;
    }
    
    .filter-modal-body {
        padding: 1.5rem;
    }
    
    .filter-modal-footer {
        padding: 1.25rem 1.5rem 1.5rem;
    }
    
    .mobile-filter-options {
        gap: 0.5rem;
    }
    
    .mobile-filter-btn {
        padding: 0.625rem 1rem;
        font-size: 0.85rem;
    }
}

@media (max-width: 480px) {
    .filter-modal-content {
        max-height: 90vh;
    }
    
    .filter-modal-header {
        padding: 1rem 1.25rem 0.5rem;
    }
    
    .filter-modal-title {
        font-size: 1.25rem;
    }
    
    .filter-modal-body {
        padding: 1.25rem;
    }
    
    .mobile-filter-section {
        margin-bottom: 1.5rem;
    }
    
    .mobile-filter-label {
        font-size: 1.1rem;
        margin-bottom: 0.75rem;
    }
}