/* Likes page specific styles */

.page-header {
    margin-bottom: 2rem;
}

.page-header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
}

.page-title-section {
    flex: 1;
}

.filter-trigger-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1rem;
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    color: var(--text-color);
    cursor: pointer;
    font-size: 0.9rem;
    transition: all 0.2s ease;
    position: relative;
    white-space: nowrap;
}

.filter-trigger-btn:hover {
    background: var(--hover-bg);
    border-color: var(--primary);
}

.filter-count {
    position: absolute;
    top: -8px;
    right: -8px;
    background: var(--primary);
    color: white;
    border-radius: 50%;
    width: 20px;
    height: 20px;
    font-size: 0.7rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
}

.filter-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    z-index: 1000;
    padding: 1rem;
    overflow-y: auto;
}

.filter-overlay.active {
    display: flex;
    align-items: center;
    justify-content: center;
}

.filter-modal {
    background: var(--card-bg);
    border-radius: 12px;
    width: 100%;
    max-width: 500px;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.filter-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem;
    border-bottom: 1px solid var(--border-color);
}

.filter-modal-header h3 {
    margin: 0;
    color: white;
}

.filter-close {
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: rgba(255, 255, 255, 0.7);
    padding: 0;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.filter-close:hover {
    color: white;
}

.filter-modal-body {
    flex: 1;
    overflow-y: auto;
    padding: 1.5rem;
}

.filter-section {
    margin-bottom: 2rem;
}

.filter-section:last-child {
    margin-bottom: 0;
}

.filter-section-title {
    font-size: 1.1rem;
    margin-bottom: 1rem;
    color: white;
    font-weight: 600;
}

.filter-checkboxes {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.filter-checkbox-item {
    display: flex;
    align-items: center;
}

.filter-checkbox {
    display: none;
}

.filter-checkbox-label {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    cursor: pointer;
    font-size: 0.9rem;
    color: white;
}

.checkbox-custom {
    width: 18px;
    height: 18px;
    border: 2px solid var(--border-color);
    border-radius: 4px;
    background: var(--input-bg);
    transition: all 0.2s ease;
    flex-shrink: 0;
}

.filter-checkbox:checked + .filter-checkbox-label .checkbox-custom {
    background: var(--primary);
    border-color: var(--primary);
}

.filter-checkbox:checked + .filter-checkbox-label .checkbox-custom::after {
    content: '✓';
    color: white;
    font-size: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
}

.filter-modal-footer {
    padding: 1.5rem;
    border-top: 1px solid var(--border-color);
    display: flex;
    gap: 1rem;
}

.btn-full {
    flex: 1;
}

.distance-slider {
    width: 100%;
    height: 6px;
    border-radius: 3px;
    background: #ddd;
    outline: none;
    -webkit-appearance: none;
}

.distance-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: var(--primary);
    cursor: pointer;
}

.distance-slider::-moz-range-thumb {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: var(--primary);
    cursor: pointer;
    border: none;
}

.distance-display {
    text-align: center;
    margin-top: 8px;
    font-weight: 500;
    color: var(--primary);
}

/* White text for filter form elements */
.filter-modal .form-label {
    color: white;
}

.filter-modal .form-control {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: white;
}

.filter-modal .form-control:focus {
    background: rgba(255, 255, 255, 0.15);
    border-color: var(--primary);
    color: white;
}

.filter-modal .form-control option {
    background: white !important;
    color: black !important;
}

.filter-modal select.form-control {
    background: rgba(255, 255, 255, 0.9) !important;
    color: black !important;
    border: 1px solid rgba(255, 255, 255, 0.5) !important;
}

/* Specific styling for received likes age select */
.likes-age-select {
    background: rgba(0, 0, 0, 0.8) !important;
    color: white !important;
    border: 1px solid rgba(255, 255, 255, 0.5) !important;
}

.likes-age-select option {
    background: white !important;
    color: black !important;
}

@media (max-width: 768px) {
    .page-header-content {
        flex-direction: column;
        align-items: stretch;
    }
    
    .filter-trigger-btn {
        justify-content: center;
    }
    
    .filter-overlay {
        padding: 0.5rem;
    }
    
    .filter-modal {
        max-height: 95vh;
    }
    
    .filter-modal-footer {
        flex-direction: column;
    }
}