/* =========================================
   ARQUIVO: convenios.css
   ESTILOS EXCLUSIVOS DO CLUBE DE CONVÊNIOS
   ========================================= */

/* Cabeçalho Interno Padrão (Reaproveitado do Institucional) */
.page-header {
    position: relative;
    background-size: cover;
    background-position: center;
    padding: 80px 20px;
    text-align: center;
    color: white;
}

.page-header-overlay {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background-color: rgba(0, 0, 0, 0.655); /* Verde escuro */
    z-index: 1;
}

.page-header-content {
    position: relative;
    z-index: 2;
    max-width: var(--container-width);
    margin: 0 auto;
}

.page-header h1 {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 16px;
}

.page-header p {
    font-size: 1.1rem;
    color: #e8f2ef;
}

/* =========================================
   FILTROS E BUSCA
   ========================================= */
.filters-section {
    background-color: white;
    padding: 40px 20px;
    border-bottom: 1px solid #e2e8f0;
    /* Fixa a barra ao rolar para baixo */
    /* position: sticky; */ 
    top: 80px; /* Logo abaixo da navbar */
    z-index: 90;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
}

.filters-container {
    max-width: var(--container-width);
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.search-bar {
    position: relative;
    max-width: 600px;
    width: 100%;
    margin: 0 auto;
}

.search-bar i {
    position: absolute;
    left: 20px;
    top: 50%;
    transform: translateY(-50%);
    color: #9ca3af;
    font-size: 1.2rem;
}

.search-bar input {
    width: 100%;
    padding: 16px 20px 16px 50px;
    border: 2px solid #e2e8f0;
    border-radius: 50px;
    font-size: 1rem;
    outline: none;
    transition: all 0.3s ease;
    background-color: #f8fafc;
}

.search-bar input:focus {
    border-color: var(--brand-primary);
    background-color: white;
    box-shadow: 0 0 0 4px rgba(24, 73, 56, 0.1);
}

.category-filters {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
}

.filter-btn {
    background-color: #f1f5f9;
    color: var(--text-muted);
    border: none;
    padding: 10px 20px;
    border-radius: 30px;
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.2s ease;
}

.filter-btn:hover {
    background-color: #e2e8f0;
    color: var(--brand-dark);
}

.filter-btn.active {
    background-color: var(--brand-primary);
    color: white;
    box-shadow: 0 4px 10px rgba(24, 73, 56, 0.2);
}

/* =========================================
   LISTA DE PARCEIROS (GRID)
   ========================================= */
.partners-list-section {
    padding: 60px 20px 100px;
    background-color: var(--bg-light);
}

.partners-grid-full {
    max-width: var(--container-width);
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
}

.partner-card {
    background-color: white;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.05);
    display: flex;
    flex-direction: column;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid #f1f5f9;
}

.partner-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
}

.partner-header {
    height: 120px;
    background-color: #e2e8f0;
    position: relative;
    background-size: cover;
    background-position: center;
}

/* Cores ou imagens provisórias de fundo para cada categoria */
.bg-medical { background-color: #dbeafe; }
.bg-dental { background-color: #ede9fe; }
.bg-education { background-color: #ffedd5; }
.bg-pharmacy { background-color: #dcfce7; }
.bg-labs { background-color: #e0f2fe; } /* Fundo azul claro para Laboratórios */

/* Cores das Badges por categoria */
.badge-saude { background-color: #3b82f6; }
.badge-odonto { background-color: #8b5cf6; }
.badge-educacao { background-color: var(--brand-accent); }
.badge-farmacia { background-color: #10b981; }
.badge-labs { background-color: #0ea5e9; } /* Azul ciano para a tag de Laboratórios */

/* Cores ou imagens provisórias de fundo para cada categoria */
.bg-medical { background-color: #dbeafe; }
.bg-dental { background-color: #ede9fe; }
.bg-education { background-color: #ffedd5; }
.bg-pharmacy { background-color: #dcfce7; }

.partner-badge {
    position: absolute;
    bottom: -15px;
    left: 24px;
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: bold;
    color: white;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

/* Cores das Badges por categoria */
.badge-saude { background-color: #3b82f6; }
.badge-odonto { background-color: #8b5cf6; }
.badge-educacao { background-color: var(--brand-accent); }
.badge-farmacia { background-color: #10b981; }

.partner-body {
    padding: 32px 24px 24px;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.partner-body h3 {
    font-size: 1.25rem;
    color: var(--brand-dark);
    margin-bottom: 12px;
}

.partner-discount {
    color: var(--brand-primary);
    font-weight: 600;
    font-size: 0.95rem;
    margin-bottom: 20px;
    line-height: 1.4;
    flex: 1; /* Empurra o resto para baixo */
}

.partner-details {
    list-style: none;
    margin-bottom: 24px;
    border-top: 1px solid #f1f5f9;
    padding-top: 16px;
}

.partner-details li {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.partner-details i {
    color: #94a3b8;
    width: 16px;
    text-align: center;
}

.btn-partner-action {
    display: block;
    text-align: center;
    background-color: white;
    color: var(--brand-dark);
    border: 1px solid #cbd5e1;
    padding: 12px;
    border-radius: 8px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-partner-action:hover {
    background-color: var(--brand-primary);
    color: white;
    border-color: var(--brand-primary);
}

/* Paginação */
.pagination {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 60px;
}

.page-btn {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #cbd5e1;
    background-color: white;
    color: var(--text-muted);
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.page-btn.active, .page-btn:hover {
    background-color: var(--brand-primary);
    color: white;
    border-color: var(--brand-primary);
}

.page-btn:last-child {
    width: auto;
    padding: 0 16px;
}

/* Estilo para a nova coluna de contatos no rodapé */
.contact-footer-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.contact-footer-list li {
    color: #cbd5e1;
    font-size: 0.95rem;
    display: flex;
    align-items: center;
    gap: 12px;
}

.contact-footer-list i {
    color: var(--brand-primary);
    font-size: 1.1rem;
    width: 20px;
    text-align: center;
}

/* =========================================
   ESTILOS DINÂMICOS (LAZER, ESTADO VAZIO E PAGINAÇÃO)
   ========================================= */

/* Cor específica para a badge de Lazer */
.badge-lazer { 
    background-color: #f59e0b; 
    color: white; 
}

/* Layout quando não há convênios (Estado Vazio) */
.empty-convenios-state {
    grid-column: 1 / -1; 
    text-align: center; 
    padding: 60px 20px; 
    color: #64748b;
}

.empty-convenios-icon {
    font-size: 3rem; 
    margin-bottom: 16px; 
    opacity: 0.5;
}

.empty-convenios-title {
    font-size: 1.2rem; 
    margin-bottom: 8px;
}

/* Centralização da Paginação do Laravel */
.pagination-wrapper {
    margin-top: 40px; 
    display: flex; 
    justify-content: center;
}

/* ==========================================================================
   BOTÃO DE AÇÃO DO PARCEIRO (WHATSAPP)
   ========================================================================== */
.btn-whatsapp-partner {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background-color: #128c7e; /* Verde oficial do WhatsApp */
    color: #ffffff !important;
    padding: 12px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.95rem;
    text-decoration: none;
    transition: all 0.3s ease;
    width: 100%;
    border: none;
}

.btn-whatsapp-partner:hover {
    background-color: #075e54; /* Verde mais escuro no hover */
    transform: translateY(-2px);
    /* box-shadow: 0 4px 10px rgba(37, 211, 102, 0.3); */
}

/* Estado desabilitado (Quando não há telefone) */
.btn-whatsapp-partner.disabled {
    background-color: #e2e8f0;
    color: #94a3b8 !important;
    cursor: not-allowed;
    box-shadow: none;
    transform: none;
}

.clear-filters-wrapper {
    display: flex;
    justify-content: center;
    margin-top: 16px;
    width: 100%;
}

.btn-clear-filters {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background-color: transparent;
    color: #ef4444; /* Vermelho padrão de alertas/limpar */
    border: 1px solid #ef4444;
    border-radius: 8px;
    font-size: 0.9rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s ease-in-out;
}

.btn-clear-filters:hover {
    background-color: #ef4444;
    color: #ffffff;
}