/**
 * Banner Full Width Module Styles
 * 
 * @package Gustoso Child Theme
 * @since 1.0
 */

/* Banner Container */
.gustoso-banner-fullwidth {
    position: relative;
    width: 100%;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 300px;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

/* Background Image */
.gustoso-banner-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    z-index: 1;
}

/* Parallax Effect */
.gustoso-banner-parallax .gustoso-banner-bg {
    transform: translateZ(0);
    will-change: transform;
}

/* Overlay */
.gustoso-banner-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 2;
}

/* Logo Overlay */
.gustoso-banner-logo {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 4;
    width: 120px;
    height: 120px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    padding: 20px;
}

.gustoso-banner-logo img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
}

/* Content Container */
.gustoso-banner-content {
    position: relative;
    z-index: 3;
    text-align: center;
    color: #ffffff;
    max-width: 1600px;
    padding: 2rem;
    padding-left: 4.3rem;
    padding-bottom: 7rem;
    width: 100%;
    align-self: flex-end;
}

/* Content Positioning */
.gustoso-banner-left .gustoso-banner-content {
    text-align: left;
}

.gustoso-banner-right .gustoso-banner-content {
    text-align: right;
}

.gustoso-banner-top .gustoso-banner-content {
    align-self: flex-start;
}

.gustoso-banner-bottom .gustoso-banner-content {
    align-self: flex-end;
}

/* Title */
.gustoso-banner-title {
    font-size: 100px;
    font-weight: 700;
    margin: 0 0 0 0;
    line-height: 1.2;
    text-align: left;
    width: 58%;
    max-width: 68%;
    color: white;
    border-left: 1px solid white;
    padding-left: 20px;
}

/* H1 Title (SEO) */
.gustoso-banner-h1 {
    font-size: 3.5rem;
    font-weight: 800;
    margin: 0 0 1rem 0;
    line-height: 1.1;
    text-align: left;
    width: 40%;
    max-width: 40%;
    color: white;
}

/* Subtitle */
.gustoso-banner-subtitle {
    font-size: 1.5rem;
    font-weight: 400;
    margin: 0 0 1rem 0;
    line-height: 1.3;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
}

/* Text Content */
.gustoso-banner-text {
    font-size: 1.125rem;
    line-height: 1.6;
    margin: 0 0 2rem 0;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
}

.gustoso-banner-text p {
    margin: 0 0 1rem 0;
}

.gustoso-banner-text p:last-child {
    margin-bottom: 0;
}

/* Button */
.gustoso-banner-button {
    display: inline-block;
    padding: 1rem 2rem;
    text-decoration: none;
    border-radius: 5px;
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border: 2px solid transparent;
    cursor: pointer;
}

.gustoso-banner-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

/* Button Styles */
.gustoso-banner-button-primary {
    background-color: #ffffff;
    color: #333333;
    border-color: #ffffff;
}

.gustoso-banner-button-primary:hover {
    background-color: transparent;
    color: #ffffff;
    border-color: #ffffff;
}

.gustoso-banner-button-secondary {
    background-color: transparent;
    color: #ffffff;
    border-color: #ffffff;
}

.gustoso-banner-button-secondary:hover {
    background-color: #ffffff;
    color: #333333;
}

.gustoso-banner-button-accent {
    background-color: #e74c3c;
    color: #ffffff;
    border-color: #e74c3c;
}

.gustoso-banner-button-accent:hover {
    background-color: transparent;
    color: #e74c3c;
    border-color: #e74c3c;
}

/* Responsive Design */

/* Tablet/Medium screens (768px - 1300px) - 40% smaller title */
@media (min-width: 769px) and (max-width: 1300px) {
    .gustoso-banner-title {
        font-size: 70px; /* 100px - 40% */
    }
    
    .gustoso-banner-h1 {
        font-size: 2.1rem; /* 3.5rem - 40% */
    }
}

@media (max-width: 768px) {
    .gustoso-banner-fullwidth {
        min-height: var(--mobile-height, 250px);
    }
    
    .gustoso-banner-logo {
        width: 100px;
        height: 100px;
        padding: 15px;
    }
    
    .gustoso-banner-title {
        font-size: 3rem;
        width: 60%;
        max-width: 60%;
    }
    
    .gustoso-banner-h1 {
        font-size: 2.5rem;
        width: 60%;
        max-width: 60%;
    }
    
    .gustoso-banner-subtitle {
        font-size: 1.25rem;
    }
    
    .gustoso-banner-text {
        font-size: 1rem;
    }
    
    .gustoso-banner-content {
        padding: 1.5rem;
    }
    
    .gustoso-banner-button {
        padding: 0.875rem 1.5rem;
        font-size: 0.9rem;
    }
}

@media (max-width: 480px) {
    .gustoso-banner-logo {
        width: 80px;
        height: 80px;
        padding: 12px;
    }
    
    .gustoso-banner-title {
        font-size: 2.35rem;
        width: 80%;
        max-width: 80%;
        margin-top: -170px !important;
    }
    
    .gustoso-banner-h1 {
        font-size: 2rem;
        width: 80%;
        max-width: 80%;
    }
    
    .gustoso-banner-subtitle {
        font-size: 1.125rem;
    }
    
    .gustoso-banner-content {
        padding: 1rem;
        padding-bottom: 70px;
    }
    
    .gustoso-banner-button {
        padding: 0.75rem 1.25rem;
        font-size: 0.875rem;
    }
}

/* Accessibility */
.gustoso-banner-fullwidth:focus-within {
    outline: 2px solid #ffffff;
    outline-offset: 2px;
}

.gustoso-banner-button:focus {
    outline: 2px solid #ffffff;
    outline-offset: 2px;
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    .gustoso-banner-title,
    .gustoso-banner-subtitle,
    .gustoso-banner-text {
        text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8);
    }
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
    .gustoso-banner-button {
        transition: none;
    }
    
    .gustoso-banner-button:hover {
        transform: none;
    }
    
    .gustoso-banner-parallax .gustoso-banner-bg {
        transform: none;
    }
}

/* ========================================
   VIDEO BANNER STYLES
   ======================================== */

/* Video Wrapper */
.gustoso-banner-video-wrapper {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    overflow: hidden;
}

/* Invisible overlay to block all interactions with video */
.gustoso-banner-video-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 5;
    pointer-events: auto;
    background: transparent;
}

/* Video Element */
.gustoso-banner-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

/* Hide HTML5 video controls - comprehensive rules */
.gustoso-banner-video-wrapper video.gustoso-banner-video::-webkit-media-controls {
    display: none !important;
    opacity: 0 !important;
    visibility: hidden !important;
}

.gustoso-banner-video-wrapper video.gustoso-banner-video::-webkit-media-controls-enclosure {
    display: none !important;
    opacity: 0 !important;
    visibility: hidden !important;
}

.gustoso-banner-video-wrapper video.gustoso-banner-video::-webkit-media-controls-panel {
    display: none !important;
    opacity: 0 !important;
    visibility: hidden !important;
}

.gustoso-banner-video-wrapper video.gustoso-banner-video::-webkit-media-controls-play-button {
    display: none !important;
    opacity: 0 !important;
    visibility: hidden !important;
}

.gustoso-banner-video-wrapper video.gustoso-banner-video::-webkit-media-controls-start-playback-button {
    display: none !important;
    opacity: 0 !important;
    visibility: hidden !important;
}

.gustoso-banner-video-wrapper video.gustoso-banner-video::-webkit-media-controls-timeline {
    display: none !important;
}

.gustoso-banner-video-wrapper video.gustoso-banner-video::-webkit-media-controls-current-time-display {
    display: none !important;
}

.gustoso-banner-video-wrapper video.gustoso-banner-video::-webkit-media-controls-time-remaining-display {
    display: none !important;
}

.gustoso-banner-video-wrapper video.gustoso-banner-video::-webkit-media-controls-mute-button {
    display: none !important;
}

.gustoso-banner-video-wrapper video.gustoso-banner-video::-webkit-media-controls-volume-slider {
    display: none !important;
}

.gustoso-banner-video-wrapper video.gustoso-banner-video::-webkit-media-controls-fullscreen-button {
    display: none !important;
}

/* Firefox video controls */
.gustoso-banner-video-wrapper video.gustoso-banner-video::-moz-media-controls {
    display: none !important;
}

.gustoso-banner-video-wrapper video.gustoso-banner-video {
    pointer-events: none !important;
}

/* Video iframe (YouTube/Vimeo) */
.gustoso-banner-video-wrapper iframe.gustoso-banner-video {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 100vw;
    height: 56.25vw; /* 16:9 aspect ratio */
    min-height: 100vh;
    min-width: 177.78vh; /* 16:9 aspect ratio */
    transform: translate(-50%, -50%);
    pointer-events: none !important;
    border: none;
}

/* Hide all YouTube/Vimeo controls and UI elements */
.gustoso-banner-video-wrapper iframe.gustoso-banner-video {
    pointer-events: none !important;
}

/* Allow clicks through overlay only for our custom controls */
.gustoso-banner-video-controls {
    pointer-events: auto !important;
    position: absolute;
    bottom: 107px;
    right: 100px;
    z-index: 11;
}

.gustoso-banner-video-toggle {
    display: flex;
    align-items: center;
    gap: 12px;
    background: transparent;
    border: none;
    cursor: pointer;
    color: #ffffff;
    font-family: 'Montserrat', -apple-system, BlinkMacSystemFont, sans-serif;
    font-size: 14px;
    font-weight: 400;
    padding: 0;
    transition: opacity 0.3s ease;
}

.gustoso-banner-video-toggle:hover {
    opacity: 0.8;
}

.gustoso-banner-video-toggle-icon {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    backdrop-filter: blur(10px);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: all 0.3s ease;
}

.gustoso-banner-video-toggle:hover .gustoso-banner-video-toggle-icon {
    background-color: rgba(255, 255, 255, 0.3);
    transform: scale(1.05);
}

.gustoso-banner-video-toggle-icon img {
    width: 42px;
    height: 42px;
    object-fit: contain;
    display: block;
}

.gustoso-banner-video-toggle-icon svg {
    width: 24px;
    height: 24px;
    fill: currentColor;
}

.gustoso-banner-video-toggle-text {
    color: #ffffff;
    font-size: 14px;
    font-weight: 400;
}

/* Paused state */
.gustoso-banner-video.paused .icon-pause,
.gustoso-banner-video-wrapper.paused .icon-pause {
    display: none;
}

.gustoso-banner-video.paused .icon-play,
.gustoso-banner-video-wrapper.paused .icon-play {
    display: block !important;
}

.gustoso-banner-video.paused ~ .gustoso-banner-video-controls .gustoso-banner-video-toggle-text {
    content: "Play";
}

/* Video banner adjustments */
.gustoso-banner-video .gustoso-banner-bg,
.gustoso-banner-video .gustoso-banner-bg-fallback {
    z-index: 0;
}

/* Fallback background - always visible behind video */
.gustoso-banner-bg-fallback {
    z-index: 0;
}

/* Hide video wrapper if video fails to load */
.gustoso-banner-video-wrapper:empty {
    display: none;
}

/* Responsive video controls */
@media (max-width: 768px) {
    .gustoso-banner-video-controls {
        bottom: 20px;
        right: 20px;
    }
    
    .gustoso-banner-video-toggle-icon {
        width: 45px;
        height: 45px;
    }
    
    .gustoso-banner-video-toggle-icon img {
        width: 30px;
        height: 30px;
    }
    
    .gustoso-banner-video-toggle-icon svg {
        width: 20px;
        height: 20px;
    }
    
    .gustoso-banner-video-toggle-text {
        font-size: 13px;
    }
}

@media (max-width: 480px) {
    .gustoso-banner-video-controls {
        bottom: 43px;
        right: 50px;
    }
    
    .gustoso-banner-video-toggle-icon {
        width: 40px;
        height: 40px;
    }
    
    .gustoso-banner-video-toggle-icon img {
        width: 28px;
        height: 28px;
    }
    
    .gustoso-banner-video-toggle-icon svg {
        width: 18px;
        height: 18px;
    }
    
    .gustoso-banner-video-toggle-text {
        font-size: 12px;
    }
}

.mejs-offscreen {
    display: none !important;
}

.mejs-overlay.mejs-layer.mejs-overlay-play {
    display: none !Important;
}

.gustoso-banner-video {
    height: 100vh !important;
}