/**
 * Plugin Apoio19 Time - Stylesheet
 */

/* Container Principal */
.apoio19-time__container {
    position: relative;
    width: 100%;
    box-sizing: border-box;
    font-family: inherit;
    --apoio19-card-gap: 24px;
}

.apoio19-time__container * {
    box-sizing: border-box;
}

/* Cabeçalho */
.apoio19-time__header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    flex-wrap: wrap;
    gap: 30px;
    margin-bottom: 50px;
    position: relative;
}

.apoio19-time__header-left {
    flex: 1 1 300px;
    max-width: 500px;
}

.apoio19-time__subtitle {
    display: block;
    color: #8e8e8e;
    font-size: 0.95rem;
    font-weight: 400;
    margin-bottom: 8px;
    letter-spacing: 0.2px;
}

.apoio19-time__title {
    color: #ffffff;
    font-size: 2.8rem;
    font-weight: 800;
    line-height: 1.1;
    margin: 0;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.apoio19-time__header-right {
    flex: 1 1 350px;
    max-width: 540px;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 20px;
    text-align: left;
}

.apoio19-time__header-desc {
    color: #b0b0b0;
    font-size: 0.95rem;
    line-height: 1.6;
    margin: 0;
}

/* Setas Superiores de Navegação (Acima do 3º componente) */
.apoio19-time__arrows {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 10px;
}

.apoio19-time__arrow-btn {
    background: transparent;
    border: none;
    outline: none;
    color: #ffffff;
    width: 32px;
    height: 32px;
    padding: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.apoio19-time__arrow-btn svg {
    width: 24px;
    height: 24px;
    transition: transform 0.2s ease, stroke 0.2s ease;
}

.apoio19-time__arrow-btn:hover {
    color: #ff5a00;
    background-color: rgba(255, 255, 255, 0.08);
}

.apoio19-time__arrow-btn:hover svg {
    transform: scale(1.15);
}

.apoio19-time__arrow-btn:active {
    transform: scale(0.95);
}

/* Viewport e Track dos Cards */
.apoio19-time__viewport {
    width: 100%;
    overflow: visible;
    position: relative;
    padding-top: 40px; /* Espaço para o pop-out da cabeça das fotos */
}

.apoio19-time__track {
    display: flex;
    gap: var(--apoio19-card-gap, 24px);
    transition: transform 0.4s cubic-bezier(0.25, 1, 0.5, 1);
    width: 100%;
}

/* Regra para menos de 3 integrantes: mantém a mesma largura de 3 colunas */
.apoio19-time__grid--fewer {
    display: flex;
    width: 100%;
    justify-content: center; /* Editável no Elementor via alignment_fewer_items */
}

.apoio19-time__grid--fewer .apoio19-time__card {
    flex: 0 0 calc((100% - (var(--apoio19-card-gap, 24px) * 2)) / 3) !important;
    max-width: calc((100% - (var(--apoio19-card-gap, 24px) * 2)) / 3) !important;
}

/* Largura das Colunas Padrão */
.apoio19-time__card {
    flex: 0 0 calc((100% - (var(--apoio19-card-gap, 24px) * 2)) / 3);
    max-width: calc((100% - (var(--apoio19-card-gap, 24px) * 2)) / 3);
    position: relative;
}

/* Card Inner Box */
.apoio19-time__card-inner {
    position: relative;
    background-color: #2f3032;
    border-radius: 8px;
    padding: 30px 25px 25px 25px;
    min-height: 440px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    transition: background-color 0.4s cubic-bezier(0.25, 1, 0.5, 1), box-shadow 0.4s ease, border-color 0.4s ease;
    overflow: visible;
}

/* Hover do Card (Fundo Laranja) */
.apoio19-time__card:hover .apoio19-time__card-inner {
    background-color: #ff5a00;
    box-shadow: 0 15px 35px rgba(255, 90, 0, 0.25);
}

/* Marca d'Água "19" no Fundo do Card */
.apoio19-time__watermark {
    position: absolute;
    top: 5%;
    right: 0%;
    font-size: 11rem;
    font-weight: 900;
    line-height: 0.8;
    color: rgba(255, 255, 255, 0.04);
    user-select: none;
    pointer-events: none;
    z-index: 1;
    transition: color 0.4s ease, opacity 0.4s ease, transform 0.4s ease;
    font-family: sans-serif;
}

.apoio19-time__card:hover .apoio19-time__watermark {
    color: rgba(255, 255, 255, 0.22);
    transform: scale(1.05);
}

/* Fotos do Integrante (Troca e Pop-out) */
.apoio19-time__photo-wrapper {
    position: absolute;
    bottom: 90px;
    left: 50%;
    transform: translateX(-50%);
    width: 90%;
    height: 100%;
    max-height: 440px;
    pointer-events: none;
    z-index: 2;
    display: flex;
    align-items: flex-end;
    justify-content: center;
}

.apoio19-time__photo {
    width: auto;
    max-width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: bottom center;
    transition: opacity 0.4s ease, transform 0.4s cubic-bezier(0.25, 1, 0.5, 1), filter 0.4s ease;
}

/* Grayscale Normal */
.has-grayscale-normal .apoio19-time__photo--default {
    filter: grayscale(100%);
}

.has-grayscale-normal .apoio19-time__card:hover .apoio19-time__photo--default {
    filter: grayscale(0%);
}

.apoio19-time__photo--hover {
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    opacity: 0;
}

.apoio19-time__card:hover .apoio19-time__photo--hover {
    opacity: 1;
}

.apoio19-time__card:hover .apoio19-time__photo--default {
    opacity: 0;
}

/* Efeito de Destaque / Pop-out da cabeça da imagem no hover */
.apoio19-time__card:hover .apoio19-time__photo {
    transform: translateY(-25px) scale(1.03);
}

.apoio19-time__card:hover .apoio19-time__photo--hover {
    transform: translateX(-50%) translateY(-25px) scale(1.03);
}

/* Rodapé do Card (Nome, Cargo e Seta) */
.apoio19-time__card-footer {
    position: relative;
    z-index: 3;
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    gap: 15px;
    width: 100%;
    margin-top: auto;
}

.apoio19-time__card-info {
    flex: 1;
}

.apoio19-time__member-name {
    color: #ffffff;
    font-size: 1.5rem;
    font-weight: 700;
    line-height: 1.25;
    margin: 0 0 6px 0;
    transition: color 0.3s ease;
}

.apoio19-time__role-wrapper {
    position: relative;
    min-height: 1.3em;
    overflow: hidden;
}

.apoio19-time__role-text {
    display: block;
    color: #c4c4c4;
    font-size: 0.9rem;
    font-weight: 400;
    line-height: 1.3;
    transition: all 0.35s ease;
}

.apoio19-time__role-text--hover {
    position: absolute;
    top: 0;
    left: 0;
    opacity: 0;
    transform: translateY(100%);
    color: #ffffff;
}

.apoio19-time__card:hover .apoio19-time__role-text--default {
    opacity: 0;
    transform: translateY(-100%);
}

.apoio19-time__card:hover .apoio19-time__role-text--hover {
    opacity: 1;
    transform: translateY(0);
}

/* Se não houver cargo de hover diferente, troca a cor do cargo no hover */
.apoio19-time__card:hover .apoio19-time__role-text {
    color: #ffffff;
}

/* Seta de Ação do Card (`→`) */
.apoio19-time__card-arrow {
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: transform 0.3s ease, color 0.3s ease;
}

.apoio19-time__card-arrow svg {
    width: 24px;
    height: 24px;
}

.apoio19-time__card:hover .apoio19-time__card-arrow {
    transform: translateX(4px);
}

/* Link Geral do Card */
.apoio19-time__card-link {
    position: absolute;
    inset: 0;
    z-index: 10;
    cursor: pointer;
}

/* Responsive Media Queries */
@media (max-width: 1024px) {
    .apoio19-time__card {
        flex: 0 0 calc((100% - var(--apoio19-card-gap, 24px)) / 2);
        max-width: calc((100% - var(--apoio19-card-gap, 24px)) / 2);
    }
    .apoio19-time__title {
        font-size: 2.2rem;
    }
}

@media (max-width: 767px) {
    .apoio19-time__header {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }
    .apoio19-time__header-right {
        align-items: flex-start;
    }
    .apoio19-time__card {
        flex: 0 0 100%;
        max-width: 100%;
    }
    .apoio19-time__grid--fewer .apoio19-time__card {
        flex: 0 0 100% !important;
        max-width: 100% !important;
    }
    .apoio19-time__title {
        font-size: 1.8rem;
    }
}
