/* 
 * CSS específico para a página de Equipe
 * VS2 Theme - Equipe Styles
 */

/* Introdução da página equipe */
.page-intro {
    margin-bottom: 30px;
    padding-bottom: 25px;
    border-bottom: 2px solid #e1e1e1;
}

.page-intro p {
    font-size: 1.1em;
    line-height: 1.7;
    color: #555;
}

/* Grid de membros da equipe */
.equipe-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 25px;
    margin-top: 20px;
}

/* Card individual do membro */
.membro-card {
    background: #fff;
    border: 1px solid #e1e1e1;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 3px 10px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    display: flex;
    flex-direction: row; /* Layout horizontal */
    min-height: 200px; /* Altura mínima para consistência */
    align-items: stretch; /* Garante que foto e info tenham a mesma altura */
}

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

/* Foto do membro */
.membro-foto {
    position: relative;
    flex: 0 0 200px; /* Largura fixa de 200px */
    height: auto; /* Altura automática */
    overflow: hidden;
    background: linear-gradient(135deg, #f5f5f5 0%, #e8e8e8 100%);
    transition: all 0.3s ease;
}

.membro-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.membro-card:hover .membro-image {
    transform: scale(1.05);
}

/* Placeholder para foto */
.membro-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #f0f0f0 0%, #e0e0e0 100%);
    color: #999;
    min-height: 200px; /* Altura mínima para placeholder */
}

.placeholder-icon {
    font-size: 3em;
    opacity: 0.5;
}

/* Informações do membro */
.membro-info {
    padding: 25px;
    flex: 1; /* Ocupa o espaço restante */
    display: flex;
    flex-direction: column;
    justify-content: flex-start; /* Alinha no topo */
    transition: all 0.3s ease;
}

.membro-nome {
    margin: 0 0 8px 0;
    font-size: 1.3em;
    font-weight: bold;
    color: #333;
    line-height: 1.3;
}

.membro-cargo {
    margin: 0 0 15px 0;
    font-size: 0.95em;
    font-weight: 600;
    color: #ff6600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-bottom: 2px solid #ff6600;
    padding-bottom: 8px;
    display: inline-block;
}

.membro-descricao {
    flex-grow: 1;
    line-height: 1.6;
    color: #666;
    max-height: 200px; /* Limita altura máxima */
    overflow-y: auto; /* Adiciona scroll se necessário */
}

.membro-descricao p {
    margin-bottom: 12px;
}

.membro-descricao p:last-child {
    margin-bottom: 0;
}

.membro-descricao ul,
.membro-descricao ol {
    margin: 10px 0;
    padding-left: 20px;
}

.membro-descricao li {
    margin-bottom: 5px;
}

.membro-descricao strong {
    color: #333;
}

.membro-descricao em {
    color: #777;
}

/* Estilização da scrollbar */
.membro-descricao::-webkit-scrollbar {
    width: 4px;
}

.membro-descricao::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 2px;
}

.membro-descricao::-webkit-scrollbar-thumb {
    background: #ff6600;
    border-radius: 2px;
}

.membro-descricao::-webkit-scrollbar-thumb:hover {
    background: #e55a00;
}

/* Estado sem membros */
.no-equipe {
    text-align: center;
    padding: 60px 30px;
    background: #f9f9f9;
    border-radius: 12px;
    border: 2px dashed #ddd;
    color: #666;
}

.no-equipe h3 {
    margin-bottom: 20px;
    color: #555;
    font-size: 1.5em;
}

.no-equipe p {
    margin-bottom: 15px;
    font-size: 1.05em;
}

.no-equipe ol {
    text-align: left;
    display: inline-block;
    margin: 20px 0;
    background: white;
    padding: 20px 25px;
    border-radius: 8px;
    border: 1px solid #e1e1e1;
}

.no-equipe li {
    margin-bottom: 8px;
    line-height: 1.5;
}

.no-equipe strong {
    color: #333;
}

.btn-adicionar-membro {
    display: inline-block;
    background: #ff6600;
    color: white;
    padding: 12px 25px;
    text-decoration: none;
    border-radius: 6px;
    font-weight: bold;
    margin-top: 20px;
    transition: all 0.3s ease;
}

.btn-adicionar-membro:hover {
    background: #e55a00;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(229, 90, 0, 0.3);
}

/* Responsivo para equipe */
@media (max-width: 1024px) {
    .equipe-grid {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
        gap: 20px;
    }
    
    .membro-foto {
        flex: 0 0 180px; /* Reduz para 180px */
    }
    
    .membro-info {
        padding: 20px;
    }
    
    .membro-card {
        min-height: 180px; /* Altura mínima reduzida */
    }
    
    .membro-placeholder {
        min-height: 180px;
    }
}

@media (max-width: 768px) {
    .equipe-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .membro-foto {
        flex: 0 0 150px; /* Reduz para 150px */
    }
    
    .membro-info {
        padding: 15px;
    }
    
    .membro-nome {
        font-size: 1.2em;
        margin-bottom: 6px;
    }
    
    .membro-cargo {
        font-size: 0.85em;
        margin-bottom: 10px;
    }
    
    .membro-descricao {
        font-size: 0.9em;
        line-height: 1.5;
    }
    
    .membro-card {
        min-height: 150px;
    }
    
    .membro-placeholder {
        min-height: 150px;
    }
    
    .placeholder-icon {
        font-size: 2.5em;
    }
}

@media (max-width: 480px) {
    .membro-card {
        flex-direction: column; /* Volta para vertical em telas muito pequenas */
        min-height: auto;
    }
    
    .membro-foto {
        flex: none;
        height: 200px; /* Altura fixa quando vertical */
    }
    
    .membro-info {
        padding: 15px;
    }
    
    .membro-placeholder {
        min-height: 200px;
    }
    
    .placeholder-icon {
        font-size: 3em;
    }
}

/* Layout alternativo para telas muito grandes */
@media (min-width: 1400px) {
    .equipe-grid {
        grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
        gap: 30px;
    }
    
    .membro-foto {
        flex: 0 0 220px; /* Aumenta para 220px */
    }
    
    .membro-info {
        padding: 30px;
    }
    
    .membro-card {
        min-height: 220px;
    }
    
    .membro-placeholder {
        min-height: 220px;
    }
}