@charset "UTF-8";

/* =====================================================
   VIDEO
===================================================== */

.academy-video {

    margin: 56px 0;
    padding: 32px;
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-sm);
}

.section-tag {
    display: inline-block;
    margin-bottom: 12px;
    padding: 6px 14px;
    background: var(--color-soft-blue);
    color: var(--color-primary);
    border-radius: 999px;
    font-size: .78rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .05em;
}

.academy-video h2 {
    margin-bottom: 12px;
    color: var(--color-dark);
}

.academy-video-description {
    max-width: 760px;
    color: var(--color-text);
    line-height: 1.7;
}

/* =====================================================
   PLAYER
===================================================== */

.academy-video-player {
    position: relative;
    margin: 28px 0;
}

.academy-video-player iframe {
    display: block;
    width: 100%;
    aspect-ratio: 16 / 9;
    border: 0;
    border-radius: 18px;
    background: #000;
    box-shadow: var(--shadow-md);

}

/* =====================================================
   FULLSCREEN
===================================================== */

.video-fullscreen {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: none;
    border-radius: 12px;
    background: rgba(7, 27, 58, .82);
    color: #fff;
    font-size: 1.15rem;
    cursor: pointer;
    opacity: 0;
    transform: translateY(-6px);
    transition:
        opacity .25s ease,
        transform .25s ease,
        background-color .25s ease;
}

.academy-video-player:hover .video-fullscreen {
    opacity: 1;
    transform: translateY(0);
}

.video-fullscreen:hover {
    background: var(--color-primary);

}

/* =====================================================
   TÓPICOS
===================================================== */

.academy-video-topics {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.academy-video-topics span {
    padding: 8px 18px;
    background: var(--color-soft-blue);
    border-radius: 999px;
    color: var(--color-primary);
    font-size: .9rem;
    font-weight: 600;
    transition: .2s;

}

.academy-video-topics span:hover {
    background: var(--color-primary);
    color: #fff;
}

/* =====================================================
   VIDEO COMPACTO / MODAL
===================================================== */

.academy-video--compact {
    display: grid;
    grid-template-columns: 1fr 420px;
    gap: 32px;
    align-items: center;
}

.academy-video-content {
    max-width: 720px;
}

.academy-video-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 22px;
}

.academy-video-meta span {
    padding: 8px 14px;
    border-radius: 999px;
    background: var(--color-soft-blue);
    color: var(--color-primary);
    font-size: .84rem;
    font-weight: 700;
}

.academy-video-preview {
    position: relative;
    overflow: hidden;
    padding: 0;
    border: 1px solid var(--color-border);
    border-radius: 22px;
    background: #000;
    cursor: pointer;
    box-shadow: var(--shadow-md);
    transition: .25s;
}

.academy-video-preview:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
}

.academy-video-preview img {
    width: 100%;
    aspect-ratio: 16 / 9;
    object-fit: cover;
    opacity: .88;
    transition: 0.25s;
}

.academy-video-preview:hover img {
    opacity: .72;
    transform: scale(1.03);
}


.academy-video-play {
    position: absolute;
    inset: 50% auto auto 50%;
    transform: translate(-50%, -50%);

    width: 46px;
    height: 46px;

    display: flex;
    align-items: center;
    justify-content: center;

    border: none;
    border-radius: 50%;

    background: rgba(20, 20, 20, .78);
    color: #fff;

    font-size: 0;

    box-shadow:
        0 4px 14px rgba(13, 91, 255, .10);

    transition:
        transform .25s ease,
        background-color .25s ease;
}

.academy-video-preview:hover .academy-video-play {
    transform: translate(-50%, -50%) scale(1.06);
    background: rgba(20, 20, 20, .9);
}

.academy-video-play::before {
    content: "";

    width: 0;
    height: 0;

    border-top: 9px solid transparent;
    border-bottom: 9px solid transparent;
    border-left: 15px solid #fff;

    transform: translateX(2px);
}

.academy-video-modal {
    position: fixed;
    inset: 0;
    z-index: 999;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 32px;
}

.academy-video-modal.is-open {
    display: flex;
}

.academy-video-modal__overlay {
    position: absolute;
    inset: 0;
    background: rgba(7, 27, 58, .72);
    backdrop-filter: blur(10px);
}

.academy-video-modal__content {
    position: relative;
    z-index: 1;
    width: min(1080px, 94vw);
    background: #000;
    border-radius: 24px;
    box-shadow: 0 30px 90px rgba(0, 0, 0, .35);
}

.academy-video-modal__content iframe {
    display: block;
    width: 100%;
    aspect-ratio: 16 / 9;
    border: 0;
    border-radius: 24px;
}

.academy-video-modal__close {
    position: absolute;
    top: -18px;
    right: -18px;
    width: 42px;
    height: 42px;
    border: none;
    border-radius: 50%;
    background: #fff;
    color: var(--color-dark);
    font-size: 1.6rem;
    cursor: pointer;
    box-shadow: var(--shadow-md);
}

@media (max-width: 900px) {
    .academy-video--compact {
        grid-template-columns: 1fr;
    }
}
