/* Profissionais Constelação - Estilos Principais - DESIGN MODERNO */

/* Reset e base */
* {
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    margin: 0;
    padding: 0;
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    min-height: 100vh;
}

/* Container principal */
.pc-profissionais-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 40px 20px;
}

/* Título da página */
.pc-titulo-pagina {
    text-align: center;
    margin-bottom: 50px;
    color: #2d3748;
}

.pc-titulo-pagina h1 {
    font-size: 3.5em;
    font-weight: 800;
    margin: 0;
    background: linear-gradient(135deg, #667eea, #764ba2);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: -0.02em;
    line-height: 1.1;
    display: none;
}

.pc-titulo-pagina p {
    font-size: 1.3em;
    color: #4a5568;
    margin: 20px 0 0 0;
    font-weight: 400;
    display: none;
}

/* Grid de profissionais com design moderno */
.pc-profissionais-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
    margin-bottom: 0px;
}

/* Cartão do profissional com design premium */
.pc-profissional-card {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    border-radius: 6px;
    padding: 0;
    /*box-shadow: 0 20px 60px rgba(0, 0, 0, 0.1);*/
    border: 1px solid #f2f2f2;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    overflow: hidden;
    position: relative;
    cursor: pointer;
}

.pc-profissional-card:hover {
    transform: translateY(-10px) scale(1.02);
    /*box-shadow: 0 30px 80px rgba(0, 0, 0, 0.15);*/
}

.pc-profissional-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #667eea, #764ba2, #667eea);
    background-size: 200% 100%;
    animation: gradientShift 3s ease infinite;
}

@keyframes gradientShift {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

/* Foto do profissional */
.pc-foto {
    position: relative;
    overflow: hidden;
    height: 250px;
}

.pc-foto-clickable {
    width: 100%;
    height: 100%;
    position: relative;
    overflow: hidden;
    transition: all 0.4s ease;
}

.pc-foto-clickable::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.1), rgba(118, 75, 162, 0.1));
    opacity: 0;
    transition: opacity 0.4s ease;
    z-index: 1;
}

.pc-profissional-card:hover .pc-foto-clickable::before {
    opacity: 1;
}

.pc-foto-clickable::after {
    content: 'Ver Perfil';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.8);
    background: rgba(255, 255, 255, 0.95);
    color: #667eea;
    padding: 12px 24px;
    border-radius: 25px;
    font-weight: 600;
    font-size: 14px;
    opacity: 0;
    transition: all 0.4s ease;
    z-index: 2;
    white-space: nowrap;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.pc-profissional-card:hover .pc-foto-clickable::after {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
}

.pc-foto img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: all 0.4s ease;
}

.pc-profissional-card:hover .pc-foto img {
    transform: scale(1.1);
}

/* Nome do profissional */
.pc-nome {
    padding: 25px 30px 30px;
    text-align: center;
    font-size: 1em;
    font-weight: 400;
    color: #2d3748;
    margin: 0;
    transition: all 0.4s ease;
    position: relative;
    z-index: 2;
}

.pc-profissional-card:hover .pc-nome {
    color: #667eea;
}

/* Área de detalhes inline (mantida para compatibilidade) */
.pc-detalhes-inline {
    display: none;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(20px);
    border-radius: 25px;
    margin: 40px 0;
    box-shadow: 0 25px 80px rgba(0, 0, 0, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.3);
    overflow: hidden;
    animation: slideInUp 0.6s ease-out;
}

.pc-detalhes-inline.ativo {
    display: block;
}

@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Botão de fechar */
.pc-fechar-detalhes-inline {
    position: absolute;
    top: 20px;
    right: 20px;
    background: linear-gradient(135deg, #e53e3e, #c53030);
    color: white;
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    font-size: 24px;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 8px 25px rgba(229, 62, 62, 0.3);
}

.pc-fechar-detalhes-inline:hover {
    transform: scale(1.1) rotate(90deg);
    box-shadow: 0 12px 35px rgba(229, 62, 62, 0.4);
}

/* Conteúdo dos detalhes */
.pc-detalhes-conteudo {
    padding: 40px;
    position: relative;
}

/* Responsividade melhorada */
@media (max-width: 1200px) {
    .pc-profissionais-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 25px;
    }
}

@media (max-width: 768px) {
    .pc-profissionais-container {
        padding: 30px 15px;
    }
    
    .pc-titulo-pagina h1 {
        font-size: 2.8em;
    }
    
    .pc-titulo-pagina p {
        font-size: 1.1em;
    }
    
    .pc-profissionais-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
    
    .pc-profissional-card {
        border-radius: 20px;
    }
    
    .pc-foto {
        height: 200px;
    }
    
    .pc-nome {
        padding: 20px 25px 25px;
        font-size: 1.3em;
    }
}

@media (max-width: 480px) {
    .pc-profissionais-container {
        padding: 20px 10px;
    }
    
    .pc-titulo-pagina h1 {
        font-size: 2.2em;
    }
    
    .pc-titulo-pagina p {
        font-size: 1em;
    }
    
    .pc-profissionais-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }
    
    .pc-profissional-card {
        border-radius: 15px;
    }
    
    .pc-foto {
        height: 180px;
    }
    
    .pc-nome {
        padding: 10px;
        font-size: 1.0em;
    }
}

/* Animações de entrada para os cartões */
.pc-profissional-card {
    animation: fadeInUp 0.8s ease-out;
    animation-fill-mode: both;
}

.pc-profissional-card:nth-child(1) { animation-delay: 0.1s; }
.pc-profissional-card:nth-child(2) { animation-delay: 0.2s; }
.pc-profissional-card:nth-child(3) { animation-delay: 0.3s; }
.pc-profissional-card:nth-child(4) { animation-delay: 0.4s; }
.pc-profissional-card:nth-child(5) { animation-delay: 0.5s; }
.pc-profissional-card:nth-child(6) { animation-delay: 0.6s; }

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}
