/* =============================================
   NEURI - PROFISSIONAIS PAGE STYLES
   ============================================= */

/* Page Header */
.page-header {
    background: linear-gradient(135deg, var(--primary-50) 0%, white 50%, var(--primary-100) 100%);
    padding: var(--space-3xl) 0;
    text-align: center;
}

.page-header-content {
    max-width: 600px;
    margin: 0 auto;
}

.page-header h1 {
    margin-bottom: var(--space-sm);
}

.page-header p {
    font-size: 1.125rem;
}

/* Professionals Section */
.professionals-section {
    padding: var(--space-3xl) 0;
    background: var(--gray-50);
}

.professionals-layout {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: var(--space-xl);
    align-items: start;
}

/* Filters Sidebar */
.filters-sidebar {
    background: white;
    border-radius: var(--radius-2xl);
    padding: var(--space-lg);
    box-shadow: var(--shadow-md);
    position: sticky;
    top: 90px;
    max-height: calc(100vh - 110px);
    overflow-y: auto;
}

.filters-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: var(--space-lg);
    padding-bottom: var(--space-md);
    border-bottom: 1px solid var(--gray-100);
}

.filters-header h3 {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    font-size: 1.125rem;
    color: var(--gray-800);
}

.filters-header h3 svg {
    color: var(--primary-600);
}

.btn-clear-filters {
    background: none;
    border: none;
    color: var(--primary-600);
    font-size: 0.875rem;
    font-weight: 500;
    cursor: pointer;
    transition: color var(--transition-fast);
}

.btn-clear-filters:hover {
    color: var(--primary-700);
    text-decoration: underline;
}

.filter-group {
    margin-bottom: var(--space-lg);
}

.filter-group:last-child {
    margin-bottom: 0;
}

.filter-group h4 {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--gray-700);
    margin-bottom: var(--space-sm);
}

.filter-options {
    display: flex;
    flex-direction: column;
    gap: var(--space-sm);
}

/* Custom Checkbox */
.filter-checkbox {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    cursor: pointer;
    font-size: 0.9375rem;
    color: var(--gray-600);
    transition: color var(--transition-fast);
}

.filter-checkbox:hover {
    color: var(--gray-800);
}

.filter-checkbox input {
    display: none;
}

.checkmark {
    width: 20px;
    height: 20px;
    border: 2px solid var(--gray-300);
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--transition-fast);
    flex-shrink: 0;
}

.checkmark::after {
    content: '';
    width: 10px;
    height: 10px;
    background: var(--primary-600);
    border-radius: 2px;
    transform: scale(0);
    transition: transform var(--transition-fast);
}

.filter-checkbox input:checked + .checkmark {
    border-color: var(--primary-600);
    background: var(--primary-50);
}

.filter-checkbox input:checked + .checkmark::after {
    transform: scale(1);
}

/* Results Section */
.professionals-results {
    min-height: 500px;
}

.results-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: var(--space-lg);
    flex-wrap: wrap;
    gap: var(--space-md);
}

.results-count {
    font-size: 0.9375rem;
    color: var(--gray-600);
}

.results-count strong {
    color: var(--gray-800);
}

.results-sort {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
}

.results-sort label {
    font-size: 0.875rem;
    color: var(--gray-600);
}

.results-sort select {
    padding: 0.5rem 2rem 0.5rem 0.75rem;
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-lg);
    background: white url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%2364748b' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E") no-repeat right 0.5rem center;
    font-family: var(--font-body);
    font-size: 0.875rem;
    color: var(--gray-700);
    cursor: pointer;
    appearance: none;
    transition: border-color var(--transition-fast);
}

.results-sort select:hover {
    border-color: var(--gray-300);
}

.results-sort select:focus {
    outline: none;
    border-color: var(--primary-500);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

/* Professionals Grid */
.professionals-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--space-lg);
}

/* Professional Card */
.professional-card {
    background: white;
    border-radius: var(--radius-2xl);
    padding: var(--space-xl);
    box-shadow: var(--shadow-md);
    transition: all var(--transition-base);
    border: 1px solid transparent;
}

.professional-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-xl);
    border-color: var(--primary-100);
}

.professional-card.hidden {
    display: none;
}

.card-header {
    display: flex;
    gap: var(--space-lg);
    margin-bottom: var(--space-lg);
}

.professional-avatar {
    position: relative;
    flex-shrink: 0;
}

.avatar-placeholder {
    width: 80px;
    height: 80px;
    border-radius: var(--radius-xl);
    display: flex;
    align-items: center;
    justify-content: center;
}

.avatar-placeholder.male {
    background: linear-gradient(135deg, var(--primary-100), var(--primary-200));
    color: var(--primary-600);
}

.avatar-placeholder.female {
    background: linear-gradient(135deg, #fce7f3, #fbcfe8);
    color: #db2777;
}

.avatar-img {
    width: 80px;
    height: 80px;
    border-radius: var(--radius-xl);
    object-fit: cover;
}

.verified-badge {
    position: absolute;
    bottom: -4px;
    right: -4px;
    width: 24px;
    height: 24px;
    background: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--success);
    box-shadow: var(--shadow-sm);
}

.professional-info h3 {
    font-size: 1.25rem;
    margin-bottom: var(--space-xs);
}

.crp {
    font-size: 0.875rem;
    color: var(--gray-500);
}

.card-body {
    margin-bottom: var(--space-lg);
}

.professional-bio {
    font-size: 0.9375rem;
    line-height: 1.6;
    color: var(--gray-600);
    margin-bottom: var(--space-md);
}

.specialties {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-sm);
    margin-bottom: var(--space-md);
}

.specialty-tag {
    padding: 0.25rem 0.75rem;
    background: var(--primary-50);
    color: var(--primary-700);
    font-size: 0.8125rem;
    font-weight: 500;
    border-radius: var(--radius-full);
}

.professional-details {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-lg);
}

.detail-item {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    font-size: 0.875rem;
    color: var(--gray-600);
}

.detail-item svg {
    color: var(--gray-400);
}

.card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: var(--space-lg);
    border-top: 1px solid var(--gray-100);
    flex-wrap: wrap;
    gap: var(--space-md);
}

.price {
    display: flex;
    flex-direction: column;
}

.price-label {
    font-size: 0.75rem;
    color: var(--gray-500);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.price-value {
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-600);
}

.btn-sm {
    padding: 0.625rem 1.25rem;
    font-size: 0.875rem;
}

/* No Results */
.no-results {
    text-align: center;
    padding: var(--space-4xl) var(--space-xl);
}

.no-results-icon {
    color: var(--gray-300);
    margin-bottom: var(--space-lg);
}

.no-results h3 {
    margin-bottom: var(--space-sm);
    color: var(--gray-700);
}

.no-results p {
    margin-bottom: var(--space-lg);
}

/* CTA Section */
.cta-professionals {
    padding: var(--space-4xl) 0;
    background: white;
}

.cta-content-centered {
    text-align: center;
    max-width: 600px;
    margin: 0 auto;
}

.cta-content-centered h2 {
    margin-bottom: var(--space-md);
}

.cta-content-centered p {
    font-size: 1.125rem;
    margin-bottom: var(--space-xl);
}

/* Mobile Filter Button */
.mobile-filter-btn {
    display: none;
    position: fixed;
    bottom: var(--space-lg);
    left: 50%;
    transform: translateX(-50%);
    padding: 0.875rem 1.5rem;
    background: var(--primary-600);
    color: white;
    border: none;
    border-radius: var(--radius-full);
    font-family: var(--font-body);
    font-size: 0.9375rem;
    font-weight: 600;
    cursor: pointer;
    box-shadow: var(--shadow-xl);
    z-index: 100;
    gap: var(--space-sm);
    align-items: center;
}

.mobile-filter-btn svg {
    flex-shrink: 0;
}

.filter-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 998;
}

.filter-overlay.active {
    display: block;
}

/* =============================================
   RESPONSIVE
   ============================================= */
@media (max-width: 992px) {
    .professionals-layout {
        grid-template-columns: 1fr;
    }
    
    .filters-sidebar {
        display: none;
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        max-height: 100vh;
        border-radius: 0;
        z-index: 999;
        padding-top: var(--space-xl);
    }
    
    .filters-sidebar.active {
        display: block;
    }
    
    .filters-sidebar .filters-header {
        position: sticky;
        top: 0;
        background: white;
        padding-top: var(--space-md);
        margin-top: 0;
    }
    
    .mobile-filter-btn {
        display: flex;
    }
}

@media (max-width: 768px) {
    .page-header {
        padding: var(--space-xl) 0;
    }
    
    .professionals-section {
        padding: var(--space-xl) 0;
    }
    
    .card-header {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .card-footer {
        flex-direction: column;
        align-items: stretch;
    }
    
    .card-footer .btn {
        width: 100%;
        justify-content: center;
    }
    
    .results-header {
        flex-direction: column;
        align-items: flex-start;
    }
}

@media (max-width: 480px) {
    .professional-card {
        padding: var(--space-lg);
    }
    
    .avatar-placeholder {
        width: 64px;
        height: 64px;
    }
    
    .avatar-placeholder svg {
        width: 32px;
        height: 32px;
    }
    
    .professional-info h3 {
        font-size: 1.125rem;
    }
    
    .price-value {
        font-size: 1.25rem;
    }
}