/* Estilos para os cards de parlamentares */
.parlamentar-card {
    text-align: center;
    margin: 0 auto;
    padding: 0;
    position: relative;
    width: 100%;
    max-width: 220px;
    cursor: pointer;
    height: 370px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    padding-bottom: 1rem;
}

.parlamentar-foto-container {
    width: 200px;
    height: 200px;
    margin: 0 auto 1.5rem;
    position: relative;
    border-radius: 50%;
    overflow: hidden;
    background: #fff;
}

.parlamentar-foto {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 30%; /* Ajustado para posicionar melhor as cabeças */
    transition: all 0.4s ease;
}

/* Adicionar classe para ajuste fino quando necessário */
.parlamentar-foto.ajuste-alto {
    object-position: center 40%;
}

.parlamentar-foto.ajuste-baixo {
    object-position: center 15%;
}

.parlamentar-card:hover .parlamentar-foto {
    transform: scale(1.15);
}

/* Overlay com ícone de olho e texto */
.parlamentar-foto-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(17, 67, 147, 0.637);
    color: white;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    opacity: 0;
    transition: opacity 0.3s ease;
    border-radius: 50%;
    z-index: 5;
    pointer-events: none;
    backdrop-filter: blur(1.5px);
}

.parlamentar-card:hover .parlamentar-foto-overlay {
    opacity: 1.2;
}

.parlamentar-foto-overlay i {
    font-size: 1.5rem;
    animation: pulse-icon 2s ease-in-out infinite;
}

.parlamentar-foto-overlay span {
    font-size: 0.8rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    text-align: center;
    line-height: 1.2;
}

@keyframes pulse-icon {
    0%, 100% {
        transform: scale(1);
        opacity: 1;
    }
    50% {
        transform: scale(1.15);
        opacity: 0.85;
    }
}

.parlamentar-nome {
    font-size: 1.15rem;
    color: #1a1a1a;
    font-weight: 700;
    margin-bottom: 0.2rem;
    font-family: 'Inter', sans-serif;
    line-height: 1.25;
    text-align: center;
    padding: 0 8px;
    word-wrap: break-word;
    overflow-wrap: break-word;
    hyphens: auto;
    max-width: 100%;
}

.parlamentar-cargo-mesa {
    font-size: 0.85rem;
    color: #114293;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    margin: 0.25rem 0 0.15rem;
    text-align: center;
    padding: 0 8px;
    line-height: 1.3;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.parlamentar-partido-overlay {
    position: absolute !important;
    top: 170px !important;
    left: 50% !important;
    transform: translateX(-50%) !important;
    font-size: 0.85rem;
    color: #fff !important;
    font-weight: 700;
    padding: 0.4rem 0.8rem;
    background-color: #114293 !important;
    border-radius: 15px;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    z-index: 100 !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
    border: 2px solid rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(6px);
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    min-width: 50px;
    text-align: center;
}

.parlamentar-partido-spacer {
    position: absolute;
    top: 170px;
    left: 50%;
    transform: translateX(-50%);
    height: 32px;
    visibility: hidden;
    pointer-events: none;
}

.parlamentar-cargo {
    font-size: 0.9rem;
    color: #666;
    font-weight: 400;
    line-height: 1.3;
    margin-bottom: 0;
    text-align: center;
    padding: 0 10px;
}

/* Controles do carrossel */
.carousel-control-prev,
.carousel-control-next {
    width: 50px;
    height: 50px;
    background-color: #001B6F !important;
    border-radius: 50%;
    top: 35%;
    transform: translateY(-50%);
    opacity: 1;
    margin: 0 -25px;
}

.carousel-control-prev:hover,
.carousel-control-next:hover {
    background-color: #0027A5 !important;
}

.carousel-control-prev {
    left: 0;
}

.carousel-control-next {
    right: 0;
}

.carousel-control-prev-icon,
.carousel-control-next-icon {
    width: 24px;
    height: 24px;
}

/* Responsividade */
@media (max-width: 1200px) {
    .parlamentar-card {
        height: 340px;
    }
    
    .parlamentar-foto-container {
        width: 180px;
        height: 180px;
    }
    
    .parlamentar-nome {
        font-size: 1.05rem;
    }
    
    .parlamentar-cargo-mesa {
        font-size: 0.75rem;
    }
    
    .parlamentar-foto-overlay i {
        font-size: 1.6rem;
    }
    
    .parlamentar-foto-overlay span {
        font-size: 0.75rem;
    }
    
    .parlamentar-partido-overlay {
        font-size: 0.8rem !important;
        padding: 0.35rem 0.7rem !important;
        top: 160px !important;
        left: 50% !important;
    }
    
    .parlamentar-partido-spacer {
        top: 160px;
        left: 50%;
        height: 30px;
    }
    
    .parlamentar-cargo {
        font-size: 0.85rem;
    }
    
    /* Ajuste dos botões para telas menores */
    .carousel-control-prev,
    .carousel-control-next {
        top: 32%;
    }
}

@media (max-width: 991px) {
    .parlamentar-card {
        height: 310px;
    }
    
    .parlamentar-foto-container {
        width: 160px;
        height: 160px;
    }
    
    .parlamentar-nome {
        font-size: 0.95rem;
    }
    
    .parlamentar-cargo-mesa {
        font-size: 0.7rem;
    }
    
    .parlamentar-foto-overlay i {
        font-size: 1.4rem;
    }
    
    .parlamentar-foto-overlay span {
        font-size: 0.7rem;
    }
    
    .parlamentar-partido-overlay {
        font-size: 0.75rem !important;
        padding: 0.3rem 0.6rem !important;
        top: 155px !important;
        left: 50% !important;
    }
    
    .parlamentar-partido-spacer {
        top: 155px;
        left: 50%;
        height: 26px;
    }
    
    .parlamentar-cargo {
        font-size: 0.8rem;
    }
    
    /* Ajuste dos botões para tablets */
    .carousel-control-prev,
    .carousel-control-next {
        top: 30%;
        width: 45px;
        height: 45px;
        margin: 0 -22px;
    }
    
    .carousel-control-prev-icon,
    .carousel-control-next-icon {
        width: 20px;
        height: 20px;
    }
}

@media (max-width: 767px) {
    .parlamentar-card {
        height: 280px;
    }
    
    .parlamentar-foto-container {
        width: 140px;
        height: 140px;
    }
    
    .parlamentar-nome {
        font-size: 0.9rem;
    }
    
    .parlamentar-cargo-mesa {
        font-size: 0.65rem;
    }
    
    .parlamentar-partido-overlay {
        font-size: 0.7rem !important;
        padding: 0.25rem 0.5rem !important;
        top: 140px !important;
        left: 50% !important;
    }
    
    .parlamentar-partido-spacer {
        top: 140px;
        left: 50%;
        height: 24px;
    }
    
    .parlamentar-cargo {
        font-size: 0.75rem;
    }
    
    .parlamentar-foto-overlay i {
        font-size: 1.3rem;
    }
    
    .parlamentar-foto-overlay span {
        font-size: 0.65rem;
    }
    
    /* Ajuste dos botões para mobile */
    .carousel-control-prev,
    .carousel-control-next {
        top: 28%;
        width: 40px;
        height: 40px;
        margin: 0 -20px;
    }
    
    .carousel-control-prev-icon,
    .carousel-control-next-icon {
        width: 18px;
        height: 18px;
    }
}


/* Acessibilidade */
.parlamentar-card:focus-within {
    outline: 3px solid #3546AB;
    outline-offset: 2px;
}

/* Transição suave do carrossel */
.carousel-item {
    transition: transform .6s ease-in-out;
}

/* Removendo animações de fadeIn */
.carousel-item.active .parlamentar-card {
    animation: none;
}

/* Animações */
@keyframes gradientMove {
    0% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0% 50%;
    }
}

@keyframes rotate {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

/* Efeito de loading */
.parlamentar-card.loading {
    animation: pulse 1.5s infinite;
}

@keyframes pulse {
    0% {
        opacity: 1;
    }
    50% {
        opacity: 0.7;
    }
    100% {
        opacity: 1;
    }
}

/* Sugestão para o fundo da seção (adicione na div da seção):
background: linear-gradient(90deg, #f8fafc 60%, #f357a8 100%);
*/

.carousel-item.active .parlamentar-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    background: linear-gradient(120deg, #3546AB 0%, #6B43BA 100%);
    opacity: 0.12;
    z-index: 1;
    pointer-events: none;
    transition: opacity 0.3s;
}

/* Estilos para os indicadores (pontos) do carrossel */
.carousel-indicators {
    position: relative;
    margin-top: 2rem;
    margin-bottom: 0;
    justify-content: center;
    gap: 8px;
}

.carousel-indicators [data-bs-target] {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: #D1D5DB;
    border: 0;
    margin: 0;
    opacity: 1;
    transition: all 0.3s ease;
}

.carousel-indicators .active {
    background-color: #001B6F;
    transform: scale(1.2);
} 