/**
 * Estilos para a página de listagem de prestadores
 * assets/css/providers.css
 */

/* Seção Hero */
.page-hero {
    background: linear-gradient(to right, #4f46e5, #06b6d4);
    color: white;
    padding: 60px 0;
    margin-bottom: 50px;
}

.hero-content {
    text-align: center;
    max-width: 900px;
    margin: 0 auto;
}

.hero-content h1 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 15px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.hero-content p {
    font-size: 1.2rem;
    margin-bottom: 30px;
    opacity: 0.9;
}

/* Formulário de busca */
.search-form {
    background-color: white;
    border-radius: 10px;
    padding: 20px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    margin-top: 30px;
}

.main-search-form {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.search-inputs {
    display: flex;
    gap: 15px;
}

.search-field {
    flex: 1;
    position: relative;
}

.search-field i {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: #6b7280;
}

.search-field input,
.search-field select {
    width: 100%;
    padding: 15px 15px 15px 45px;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    font-size: 16px;
    color: #111827;
    background-color: #f9fafb;
    transition: all 0.3s;
}

.search-field input:focus,
.search-field select:focus {
    border-color: #4f46e5;
    background-color: white;
    outline: none;
    box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.1);
}

.search-field input::placeholder {
    color: #9ca3af;
}

@media (max-width: 768px) {
    .search-inputs {
        flex-direction: column;
    }
    
    .main-search-form .btn {
        width: 100%;
    }
}

/* Layout de conteúdo */
.providers-content {
    padding-bottom: 60px;
}

.content-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
}

.results-info h2 {
    font-size: 1.5rem;
    margin-bottom: 5px;
}

.results-info p {
    color: #6b7280;
}

.filters-sort {
    display: flex;
    gap: 20px;
    align-items: center;
}

.rating-filter {
    display: flex;
    align-items: center;
    gap: 10px;
}

.rating-filter label {
    color: #6b7280;
    font-weight: 500;
}

.rating-options {
    display: flex;
    gap: 8px;
}

.rating-option {
    display: flex;
    align-items: center;
    gap: 5px;
    padding: 5px 10px;
    border-radius: 5px;
    border: 1px solid #e5e7eb;
    background-color: #f9fafb;
    color: #6b7280;
    text-decoration: none;
    transition: all 0.3s;
}

.rating-option:hover {
    border-color: #4f46e5;
    color: #4f46e5;
}

.rating-option.active {
    background-color: #4f46e5;
    border-color: #4f46e5;
    color: white;
}

.rating-option i {
    color: #fbbf24;
}

.rating-option.active i {
    color: #fef3c7;
}

.sort-options {
    display: flex;
    align-items: center;
    gap: 10px;
}

.sort-options label {
    color: #6b7280;
    font-weight: 500;
}

.sort-options select {
    padding: 8px 12px;
    border: 1px solid #e5e7eb;
    border-radius: 5px;
    background-color: #f9fafb;
    color: #111827;
    font-size: 14px;
}

.mobile-filters {
    display: none;
    margin-bottom: 20px;
}

@media (max-width: 992px) {
    .content-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }
    
    .filters-sort {
        flex-direction: column;
        align-items: flex-start;
        width: 100%;
    }
    
    .rating-filter, .sort-options {
        width: 100%;
        flex-wrap: wrap;
    }
    
    .sort-options select {
        width: 100%;
    }
}

@media (max-width: 768px) {
    .content-header {
        display: none;
    }
    
    .mobile-filters {
        display: block;
    }
    
    .mobile-filters .btn {
        width: 100%;
    }
}

/* Layout principal */
.providers-layout {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 30px;
}

@media (max-width: 992px) {
    .providers-layout {
        grid-template-columns: 1fr;
    }
}

/* Sidebar de filtros */
.filters-sidebar {
    background-color: white;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    padding: 20px;
    position: sticky;
    top: 20px;
    height: max-content;
}

.filter-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.filter-header h3 {
    font-size: 1.25rem;
    font-weight: 600;
    color: #111827;
}

.close-filters {
    display: none;
    background: none;
    border: none;
    font-size: 1.25rem;
    color: #6b7280;
    cursor: pointer;
}

.filter-section {
    margin-bottom: 25px;
    border-bottom: 1px solid #e5e7eb;
    padding-bottom: 20px;
}

.filter-section:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.filter-section h4 {
    font-size: 1rem;
    font-weight: 600;
    color: #374151;
    margin-bottom: 15px;
}

.filter-options {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.filter-option {
    display: flex;
    align-items: center;
    gap: 10px;
}

.filter-option input[type="radio"] {
    accent-color: #4f46e5;
    width: 18px;
    height: 18px;
}

.filter-option label {
    font-size: 0.95rem;
    color: #4b5563;
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
}

.filter-option label i {
    color: #4f46e5;
}

.filter-option label .count {
    color: #9ca3af;
    font-size: 0.85rem;
}

.filter-option .rating-label {
    margin-left: 5px;
}

.filter-option .fas.fa-star {
    color: #fbbf24;
    font-size: 0.95rem;
}

.filter-option .far.fa-star {
    color: #e5e7eb;
    font-size: 0.95rem;
}

.filter-option select.full-width {
    width: 100%;
    padding: 10px;
    border-radius: 5px;
    border: 1px solid #e5e7eb;
    color: #4b5563;
}

.filter-actions {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 25px;
}

@media (max-width: 992px) {
    .filters-sidebar {
        position: fixed;
        top: 0;
        left: -100%;
        width: 100%;
        height: 100%;
        z-index: 1000;
        border-radius: 0;
        overflow-y: auto;
        transition: left 0.3s ease;
        padding: 20px;
    }
    
    .filters-sidebar.active {
        left: 0;
    }
    
    .close-filters {
        display: block;
    }
    
    body.no-scroll {
        overflow: hidden;
    }
}

@media (min-width: 576px) and (max-width: 992px) {
    .filters-sidebar {
        width: 350px;
        border-radius: 0 10px 10px 0;
    }
}

/* Listagem de prestadores */
.providers-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 25px;
}

.provider-card {
    background-color: white;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    overflow: hidden;
    transition: all 0.3s;
    display: flex;
    flex-direction: column;
    border: 1px solid #e5e7eb;
}

.provider-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.provider-header {
    position: relative;
    padding: 25px 0 0;
    display: flex;
    justify-content: center;
}

.provider-image {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    overflow: hidden;
    border: 4px solid white;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    background-color: #f3f4f6;
}

.provider-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.provider-verified {
    position: absolute;
    bottom: 0;
    right: calc(50% - 50px);
    background-color: #22c55e;
    color: white;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    border: 2px solid white;
}

.provider-info {
    padding: 20px;
    flex: 1;
    text-align: center;
}

.provider-name {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 10px;
}

.provider-name a {
    color: #111827;
    text-decoration: none;
    transition: color 0.3s;
}

.provider-name a:hover {
    color: #4f46e5;
}

.provider-location {
    color: #6b7280;
    margin-bottom: 15px;
    font-size: 0.95rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
}

.provider-rating {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-bottom: 15px;
}

.provider-rating .stars {
    color: #fbbf24;
    font-size: 0.95rem;
}

.provider-rating .rating-text {
    font-size: 0.9rem;
}

.provider-rating .rating-value {
    font-weight: 600;
    color: #111827;
}

.provider-rating .review-count {
    color: #6b7280;
}

.provider-categories {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: center;
    margin-bottom: 15px;
}

.category-badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 5px 10px;
    border-radius: 50px;
    background-color: rgba(var(--category-color, 79, 70, 229), 0.1);
    color: rgb(var(--category-color, 79, 70, 229));
    font-size: 0.8rem;
    text-decoration: none;
    transition: all 0.3s;
}

.category-badge:hover {
    background-color: rgba(var(--category-color, 79, 70, 229), 0.2);
}

.category-badge i {
    font-size: 0.9rem;
}

.more-categories {
    font-size: 0.8rem;
    color: #6b7280;
}

.provider-bio {
    color: #4b5563;
    font-size: 0.95rem;
    line-height: 1.5;
    margin-top: 15px;
}

.provider-footer {
    padding: 15px 20px;
    border-top: 1px solid #e5e7eb;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: #f9fafb;
}

.service-count {
    color: #6b7280;
    font-size: 0.95rem;
    display: flex;
    align-items: center;
    gap: 5px;
}

/* Estado vazio */
.empty-results {
    text-align: center;
    padding: 60px 20px;
    background-color: white;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.empty-icon {
    font-size: 3rem;
    color: #d1d5db;
    margin-bottom: 20px;
}

.empty-results h3 {
    font-size: 1.5rem;
    color: #111827;
    margin-bottom: 15px;
}

.empty-results p {
    color: #6b7280;
    margin-bottom: 25px;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
}

/* Paginação */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 40px;
    gap: 15px;
}

.page-link {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    border-radius: 5px;
    border: 1px solid #e5e7eb;
    background-color: white;
    color: #4b5563;
    font-size: 0.95rem;
    text-decoration: none;
    transition: all 0.3s;
}

.page-link:hover {
    border-color: #4f46e5;
    color: #4f46e5;
}

.page-link.disabled {
    opacity: 0.5;
    cursor: not-allowed;
    pointer-events: none;
}

.page-numbers {
    display: flex;
    gap: 8px;
}

.page-number {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 5px;
    border: 1px solid #e5e7eb;
    background-color: white;
    color: #4b5563;
    font-size: 0.95rem;
    text-decoration: none;
    transition: all 0.3s;
}

.page-number:hover {
    border-color: #4f46e5;
    color: #4f46e5;
}

.page-number.active {
    background-color: #4f46e5;
    border-color: #4f46e5;
    color: white;
}

.page-ellipsis {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    color: #6b7280;
}

@media (max-width: 576px) {
    .pagination {
        flex-wrap: wrap;
    }
    
    .page-numbers {
        order: 3;
        width: 100%;
        justify-content: center;
        margin-top: 15px;
    }
    
    .page-link {
        flex: 1;
        justify-content: center;
    }
}

/* Seção CTA */
.cta-section {
    background: linear-gradient(to right, #4f46e5, #06b6d4);
    color: white;
    padding: 60px 0;
    margin-top: 60px;
}

.cta-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 30px;
}

.cta-text h2 {
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 15px;
}

.cta-text p {
    font-size: 1.1rem;
    opacity: 0.9;
}

.btn-lg {
    padding: 12px 24px;
    font-size: 1.1rem;
}

@media (max-width: 768px) {
    .cta-content {
        flex-direction: column;
        text-align: center;
    }
}

/* Utilitários */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 20px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.95rem;
    transition: all 0.3s;
    text-decoration: none;
    cursor: pointer;
    border: none;
}

.btn-primary {
    background-color: #4f46e5;
    color: white;
}

.btn-primary:hover {
    background-color: #4338ca;
    box-shadow: 0 4px 10px rgba(79, 70, 229, 0.3);
}

.btn-outline {
    background-color: transparent;
    color: #4f46e5;
    border: 1px solid #4f46e5;
}

.btn-outline:hover {
    background-color: rgba(79, 70, 229, 0.05);
}

.btn-sm {
    padding: 6px 12px;
    font-size: 0.85rem;
}

.btn-block {
    width: 100%;
}

/* Fix para categorias */
.category-badge {
    /* Converter RGB para hsl -- Tailwind CSS usa formato HSL para cores */
    --category-color-hsl: var(--category-color, #4f46e5);
    background-color: hsla(var(--category-color-hsl-h, 246), var(--category-color-hsl-s, 69%), var(--category-color-hsl-l, 58%), 0.1);
    color: var(--category-color, #4f46e5);
}

.category-badge:hover {
    background-color: hsla(var(--category-color-hsl-h, 246), var(--category-color-hsl-s, 69%), var(--category-color-hsl-l, 58%), 0.2);
}