/* CSS para o "Vídeo Simulado" (Slideshow Automático) */
.video-slideshow {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #000;
    overflow: hidden;
    display: none;
    /* Oculto até clicar em play */
}

.video-slideshow.active {
    display: block;
}

.v-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 1s ease-in-out;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 20px;
}

.v-slide.active-slide {
    opacity: 1;
    z-index: 2;
}

.v-bg-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.4;
    z-index: 1;
    animation: zoomEffect 10s infinite alternate;
}

@keyframes zoomEffect {
    from {
        transform: scale(1);
    }

    to {
        transform: scale(1.1);
    }
}

.hero-image {
    width: 100%;
    max-width: 480px;
    /* Restored closer to original width */
    aspect-ratio: 1 / 1;
    /* Square ratio - shorter height */
    object-fit: cover;
    object-position: center 20%;
    /* Focus slightly higher on waist */
    border-radius: 20px;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.4);
    z-index: 2;
    border: 1px solid rgba(255, 255, 255, 0.1);
    /* Improve visibility on dark backgrounds */
    filter: brightness(1.1) contrast(1.1);
}

.v-content {
    position: relative;
    z-index: 3;
    max-width: 80%;
}

.v-text {
    color: #fff;
    font-family: var(--font-heading);
    font-size: 1.8rem;
    font-weight: 800;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.8);
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.5s ease 0.5s;
    /* Delay para entrar depois do slide */
}

.v-slide.active-slide .v-text {
    opacity: 1;
    transform: translateY(0);
}

.v-subtext {
    color: var(--primary);
    font-size: 1.2rem;
    margin-top: 15px;
    font-weight: 600;
    background: rgba(0, 0, 0, 0.6);
    padding: 5px 15px;
    border-radius: 5px;
    display: inline-block;
    opacity: 0;
    transform: scale(0.9);
    transition: all 0.5s ease 1s;
    /* Delay maior */
}

.v-slide.active-slide .v-subtext {
    opacity: 1;
    transform: scale(1);
}

.v-progress-bar {
    position: absolute;
    bottom: 0;
    left: 0;
    height: 5px;
    background: var(--primary);
    width: 0%;
    z-index: 10;
}

.video-controls {
    position: absolute;
    bottom: 10px;
    right: 10px;
    z-index: 20;
    background: rgba(0, 0, 0, 0.5);
    border-radius: 5px;
    padding: 5px;
    cursor: pointer;
    color: white;
    font-size: 0.8rem;
}

.video-overlay-play {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.1);
    /* Reduced opacity */
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    z-index: 20;
    transition: all 0.3s ease;
}

.video-overlay-play:hover {
    background: rgba(0, 0, 0, 0.2);
}

.video-overlay-play:active {
    transform: scale(0.98);
}

.big-play-btn {
    width: 80px;
    height: 80px;
    background: rgba(255, 140, 0, 0.95);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: 0 0 0 15px rgba(255, 140, 0, 0.4);
    animation: pulse-subtle 2s infinite;
    position: relative;
}

.big-play-btn::after {
    content: '';
    position: absolute;
    left: 55%;
    top: 50%;
    transform: translate(-50%, -50%);
    border-style: solid;
    border-width: 18px 0 18px 28px;
    border-color: transparent transparent transparent white;
}

/* Mobile Optimizations - Must be last to override */
@media (max-width: 768px) {
    .v-text {
        font-size: 1.2rem !important;
        /* Force smaller size on mobile */
        line-height: 1.4;
    }

    .video-overlay-title {
        font-size: 1.2rem !important;
        margin-bottom: 10px !important;
        /* Keep close to subtitle */
    }

    /* Move text to bottom to avoid play button overlap */
    .video-placeholder {
        justify-content: flex-end !important;
        padding-bottom: 40px !important;
    }

    .video-overlay-subtitle {
        margin-bottom: 0px;
        z-index: 25;
        /* Ensure visibility */
        position: relative;
        font-size: 0.9rem !important;
        background: rgba(0, 0, 0, 0.8) !important;
        /* Higher contrast */
        border: 1px solid var(--primary);
    }

    .big-play-btn {
        width: 60px;
        height: 60px;
        box-shadow: 0 0 0 10px rgba(255, 140, 0, 0.4);
    }

    .big-play-btn::after {
        border-width: 12px 0 12px 20px;
    }
}