/* ==================== MELHORIAS ADICIONAIS CORPO DIRETIVO ==================== */

/* Badge de Cargo */
.diretor-badge {
    position: absolute;
    top: 15px;
    left: 15px;
    background: linear-gradient(135deg, var(--primary) 0%, #8b5cf6 100%);
    color: white;
    padding: 10px 16px;
    border-radius: 25px;
    font-size: 0.85rem;
    font-weight: 700;
    z-index: 2;
    box-shadow: 0 4px 15px rgba(48, 130, 174, 0.25);
    letter-spacing: 0.3px;
    text-transform: uppercase;
    animation: slideInBadge 0.5s ease both;
}

@keyframes slideInBadge {
    from {
        opacity: 0;
        transform: translateX(-20px) rotate(-10deg);
    }
    to {
        opacity: 1;
        transform: translateX(0) rotate(0);
    }
}

/* Stats do Diretor */
.diretor-stats {
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding: 15px 0;
    border-top: 2px solid #f0f0f0;
    border-bottom: 2px solid #f0f0f0;
    margin: 15px 0;
}

.stat-item {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 0.9rem;
    color: #666;
    transition: all 0.3s ease;
}

.stat-item i {
    color: var(--primary);
    font-size: 1.1rem;
    transition: all 0.3s ease;
    width: 24px;
    text-align: center;
}

.diretor-card:hover .stat-item {
    color: var(--primary);
    padding-left: 8px;
}

.diretor-card:hover .stat-item i {
    transform: scale(1.3) rotate(15deg);
}

/* ==================== MELHORIAS INSTALAÇÕES ==================== */

/* Amenidades adicionadas */
.instalacao-amenidades {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    padding: 12px 0;
    margin-top: 12px;
}

.amenidade-tag {
    background: rgba(48, 130, 174, 0.08);
    border: 1px solid rgba(48, 130, 174, 0.2);
    color: var(--primary);
    padding: 6px 12px;
    border-radius: 15px;
    font-size: 0.8rem;
    font-weight: 600;
    transition: all 0.3s ease;
}

.amenidade-tag:hover {
    background: linear-gradient(135deg, var(--primary) 0%, #1a4b8c 100%);
    color: white;
    border-color: var(--primary);
    transform: translateY(-2px);
}

/* Info da instalação melhorada */
.instalacao-info-extended {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    padding: 15px 0;
    margin: 15px 0;
    border-top: 2px solid #f0f0f0;
    border-bottom: 2px solid #f0f0f0;
}

.info-box {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px;
    background: rgba(48, 130, 174, 0.05);
    border-radius: 8px;
    transition: all 0.3s ease;
}

.info-box:hover {
    background: rgba(48, 130, 174, 0.12);
    transform: translateX(4px);
}

.info-box i {
    color: var(--primary);
    font-size: 1.2rem;
    width: 24px;
}

.info-box span {
    color: #666;
    font-weight: 600;
    font-size: 0.9rem;
}

/* ==================== CARDS COM MAIS CONTEÚDO ==================== */

.diretor-card {
    position: relative;
    background: white;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 
        0 2px 8px rgba(0, 0, 0, 0.08),
        0 0 0 1px rgba(48, 130, 174, 0.1);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    cursor: pointer;
    border: 2px solid transparent;
}

.diretor-card::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--primary), #8b5cf6);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s ease;
}

.diretor-card:hover::after {
    transform: scaleX(1);
}

/* ==================== MODAL APRIMORADO ==================== */

.diretor-detail-extended {
    animation: slideUp 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.diretor-detail-header-extended {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 25px;
    margin-bottom: 35px;
    padding-bottom: 25px;
    border-bottom: 2px solid #e8e8e8;
    align-items: start;
}

.diretor-detail-img-large {
    width: 180px;
    height: 220px;
    border-radius: 16px;
    object-fit: cover;
    border: 4px solid var(--primary);
    box-shadow: 0 12px 35px rgba(48, 130, 174, 0.25);
    flex-shrink: 0;
}

.diretor-detail-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 15px 0;
}

.detail-badge {
    display: inline-block;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 0.3px;
}

.detail-badge.especialidade {
    background: linear-gradient(135deg, var(--primary) 0%, #1a4b8c 100%);
    color: white;
    box-shadow: 0 4px 12px rgba(48, 130, 174, 0.2);
}

.detail-badge.experiencia {
    background: linear-gradient(135deg, #8b5cf6 0%, #6d28d9 100%);
    color: white;
    box-shadow: 0 4px 12px rgba(139, 92, 246, 0.2);
}

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

@media (max-width: 768px) {
    .diretor-stats {
        gap: 10px;
    }

    .stat-item {
        font-size: 0.85rem;
    }

    .instalacao-info-extended {
        grid-template-columns: 1fr;
    }

    .diretor-detail-header-extended {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .diretor-detail-img-large {
        width: 100%;
        height: auto;
    }

    .amenidade-tag {
        font-size: 0.75rem;
        padding: 5px 10px;
    }
}

@media (max-width: 480px) {
    .diretor-badge {
        padding: 8px 12px;
        font-size: 0.75rem;
    }

    .diretor-stats {
        gap: 8px;
        padding: 10px 0;
    }

    .stat-item {
        font-size: 0.8rem;
    }

    .amenidade-tag {
        font-size: 0.7rem;
        padding: 4px 8px;
    }
}

/* ==================== ANIMAÇÕES ADICIONAIS ==================== */

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

.diretor-stats {
    animation: slideInStats 0.5s ease 0.3s both;
}

/* ==================== EFEITOS HOVER APRIMORADOS ==================== */

.diretor-card:hover {
    transform: translateY(-12px) scale(1.02);
    box-shadow: 
        0 20px 40px rgba(48, 130, 174, 0.25),
        0 0 0 1px rgba(48, 130, 174, 0.2);
    border-color: var(--primary);
}

.diretor-card:hover .diretor-img {
    transform: scale(1.12) rotate(2deg);
}

/* ==================== UTILITÁRIOS ==================== */

.badge-primary {
    background: linear-gradient(135deg, var(--primary), #1a4b8c);
    color: white;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 700;
    display: inline-block;
    box-shadow: 0 4px 12px rgba(48, 130, 174, 0.2);
}

.badge-secondary {
    background: linear-gradient(135deg, #8b5cf6, #6d28d9);
    color: white;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 700;
    display: inline-block;
    box-shadow: 0 4px 12px rgba(139, 92, 246, 0.2);
}

/* ==================== FOCO E ACESSIBILIDADE ==================== */

.diretor-card:focus-within {
    outline: 2px solid var(--primary);
    outline-offset: 2px;
}

.diretor-detail-badges a:focus {
    outline: 2px solid var(--primary);
    border-radius: 4px;
}

.info-box:focus-within {
    background: rgba(48, 130, 174, 0.15);
    outline: 2px solid var(--primary);
    outline-offset: 2px;
}

/* ==================== TRANSIÇÕES SUAVES ==================== */

.diretor-card,
.instalacao-card,
.stat-item,
.amenidade-tag,
.info-box {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}
