/* Video CSS for ibericonogueira.com */

.video-container {
    position: relative;
    width: 100%;
    height: 0;
    padding-bottom: 56.25%; /* 16:9 aspect ratio */
    overflow: hidden;
    margin-bottom: 2rem;
}

.video-container video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.video-container.hero-video {
    padding-bottom: 70vh;
    margin-bottom: 0;
}

.video-container.hero-video::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(rgba(0, 0, 0, 0.4), rgba(0, 0, 0, 0.6));
    z-index: 1;
}

.video-container.hero-video video {
    z-index: 0;
}

.video-container.hero-video .hero-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 2;
    width: 100%;
    text-align: center;
    color: var(--secondary-color);
}

/* Fallback for browsers that don't support video */
.video-fallback {
    display: none;
    width: 100%;
    height: 100%;
    position: absolute;
    top: 0;
    left: 0;
    background-size: cover;
    background-position: center;
}

.no-video .video-fallback {
    display: block;
}

.no-video video {
    display: none;
}

/* Video controls styling */
.video-container video::-webkit-media-controls {
    display: none !important;
}

.video-container .video-controls {
    position: absolute;
    bottom: 20px;
    right: 20px;
    z-index: 3;
    display: flex;
    gap: 10px;
}

.video-container .video-control-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: rgba(0, 0, 0, 0.5);
    border: none;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.video-container .video-control-btn:hover {
    background-color: rgba(0, 0, 0, 0.8);
}

.video-container .video-control-btn svg {
    width: 20px;
    height: 20px;
}

/* Mobile optimizations */
@media (max-width: 768px) {
    .video-container.hero-video {
        padding-bottom: 100vh;
    }
    
    .video-container .video-controls {
        bottom: 10px;
        right: 10px;
    }
    
    .video-container .video-control-btn {
        width: 30px;
        height: 30px;
    }
}
