/**
 * =====================================================
 * POPUP DINÂMICO PROFISSIONAIS - ESTILOS CSS
 * =====================================================
 * 
 * Arquivo: /assets/css/profissionais-popup.css
 * 
 * Cores baseadas no tema NB Fitness:
 * - Azul escuro: #1a3a52
 * - Verde: #4CAF50
 * - Cinza claro: #f8f9fa
 */

/* =====================================================
   OVERLAY DO POPUP
   ===================================================== */
.profissional-popup-container {
	border: 2px solid #130432;
}
.profissional-popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(26, 58, 82, 0.85);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.profissional-popup-overlay.is-active {
    opacity: 1;
    visibility: visible;
}

/* Bloqueia scroll quando popup está aberto */
body.popup-open {
    overflow: hidden;
}

/* =====================================================
   CONTAINER DO POPUP
   ===================================================== */

.profissional-popup-container {
    background: white;
    border-radius: 20px;
    width: 100%;
    max-width: 600px;
    max-height: 90vh;
    overflow: hidden;
    position: relative;
    box-shadow: 0 25px 80px rgba(0, 0, 0, 0.3);
    transform: translateY(30px) scale(0.95);
    transition: transform 0.3s ease;
}

.profissional-popup-overlay.is-active .profissional-popup-container {
    transform: translateY(0) scale(1);
}

/* =====================================================
   BOTÃO FECHAR
   ===================================================== */

.profissional-popup-close {
    position: absolute;
    top: 15px;
    right: 15px;
    width: 48px;
    height: 48px;
    border: none;
    background: #f8f9fa;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
    transition: all 0.2s ease;
    color: #1a3a52;
}

.profissional-popup-close:hover {
    background: #1a3a52;
    color: white;
    transform: rotate(90deg);
}

.profissional-popup-close svg {
    width: 26px;
    height: 26px;
}

/* =====================================================
   CONTEÚDO DO POPUP
   ===================================================== */

.profissional-popup-content {
    max-height: 90vh;
    overflow-y: auto;
}

/* =====================================================
   ESTADO DE LOADING
   ===================================================== */

.profissional-popup-loading {
    padding: 80px 40px;
    text-align: center;
}

.profissional-popup-loading .spinner {
    width: 50px;
    height: 50px;
    border: 4px solid #f8f9fa;
    border-top-color: #4CAF50;
    border-radius: 50%;
    margin: 0 auto 20px;
    animation: popup-spin 0.8s linear infinite;
}

@keyframes popup-spin {
    to {
        transform: rotate(360deg);
    }
}

.profissional-popup-loading p {
    color: #666;
    font-size: 1rem;
    margin: 0;
}

/* =====================================================
   ESTADO DE ERRO
   ===================================================== */

.profissional-popup-error {
    padding: 60px 40px;
    text-align: center;
}

.profissional-popup-error p {
    color: #666;
    font-size: 1.1rem;
    margin-bottom: 20px;
}

.popup-retry-btn {
    background: #4CAF50;
    color: white;
    border: none;
    padding: 12px 30px;
    border-radius: 25px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.popup-retry-btn:hover {
    background: #45a049;
    transform: translateY(-2px);
}

/* =====================================================
   HEADER DO POPUP
   ===================================================== */

.popup-header {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 30px 30px 20px;
    background: linear-gradient(135deg, #1a3a52 0%, #2d5f7e 100%);
    color: white;
}

.popup-foto {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid rgba(255, 255, 255, 0.3);
    flex-shrink: 0;
}

.popup-header-info {
    flex: 1;
}

.popup-nome {
    font-size: 1.6rem;
    font-weight: 700;
    margin: 0 0 5px;
    line-height: 1.2;
}

.popup-especialidade {
    font-size: 1.1rem;
    opacity: 0.9;
    margin: 0 0 8px;
}

.popup-registro {
    display: inline-block;
    background: rgba(255, 255, 255, 0.2);
    padding: 4px 12px;
    border-radius: 15px;
    font-size: 0.85rem;
}

/* =====================================================
   BODY DO POPUP
   ===================================================== */

.popup-body {
    padding: 25px 30px;
}

.popup-descricao {
    font-size: 1.05rem;
    line-height: 1.7;
    color: #444;
    margin-bottom: 25px;
}

.popup-section {
    margin-bottom: 20px;
    padding-bottom: 20px;
    border-bottom: 1px solid #eee;
}

.popup-section:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.popup-section h3 {
    font-size: 1.1rem;
    color: #1a3a52;
    margin: 0 0 10px;
    font-weight: 600;
}

.popup-section p,
.popup-section div {
    font-size: 1rem;
    color: #555;
    line-height: 1.6;
    margin: 0;
}

/* Campo X específico */
.popup-campo-x {
    background: #fff;
    padding: 15px 20px;
    border-radius: 10px;
    border-left: 4px solid #4CAF50;
}

/* =====================================================
   FOOTER DO POPUP
   ===================================================== */

.popup-footer {
    padding: 20px 30px 30px;
    text-align: center;
    background: #f8f9fa;
}

.popup-contato-btn {
    display: inline-block;
    background: #4CAF50;
    color: white;
    padding: 14px 40px;
    border-radius: 30px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1.05rem;
    transition: all 0.3s ease;
}

.popup-contato-btn:hover {
    background: #45a049;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(76, 175, 80, 0.35);
    color: white;
}

/* =====================================================
   RESPONSIVO
   ===================================================== */

@media (max-width: 640px) {
    .profissional-popup-overlay {
        padding: 10px;
    }

    .profissional-popup-container {
        max-height: 95vh;
        border-radius: 15px;
    }

    .popup-header {
        flex-direction: column;
        text-align: center;
        padding: 25px 20px 20px;
    }

    .popup-foto {
        width: 90px;
        height: 90px;
    }

    .popup-nome {
        font-size: 1.4rem;
    }

    .popup-especialidade {
        font-size: 1rem;
    }

    .popup-body {
        padding: 20px;
    }

    .popup-descricao {
        font-size: 1rem;
    }

    .popup-footer {
        padding: 15px 20px 25px;
    }

    .popup-contato-btn {
        width: 100%;
        padding: 14px 20px;
    }

    .profissional-popup-close {
        top: 12px;
        right: 12px;
        width: 44px;
        height: 44px;
    }

    .profissional-popup-close svg {
        width: 24px;
        height: 24px;
    }
}

/* =====================================================
   SCROLLBAR CUSTOMIZADA
   ===================================================== */

.profissional-popup-content::-webkit-scrollbar {
    width: 6px;
}

.profissional-popup-content::-webkit-scrollbar-track {
    background: #f1f1f1;
}

.profissional-popup-content::-webkit-scrollbar-thumb {
    background: #ccc;
    border-radius: 3px;
}

.profissional-popup-content::-webkit-scrollbar-thumb:hover {
    background: #aaa;
}
