/**
 * Hero Video Block - Frontend Styles
 * Place this file in your theme's /blocks/hero-video/ directory
 */

/* CSS Variables */
:root {
    --hero-primary-blue: #3258c2;
    --hero-dark-blue: #1a2b5a;
    --hero-light-blue: #7FB3D5;
    --hero-text-light: #ffffff;
    --hero-text-dark: #333333;
}

/* Hero Section with Video Background */
.wp-block-custom-hero-video {
    position: relative;
    height: 70vh;
    min-height: 500px;
    max-height: 800px;
    overflow: hidden;
    margin: 0;
    padding: 0;
}

.wp-block-custom-hero-video.alignfull {
    width: 100vw;
    margin-left: calc(50% - 50vw);
    margin-right: calc(50% - 50vw);
}

.wp-block-custom-hero-video.alignwide {
    margin-left: calc(25% - 25vw);
    margin-right: calc(25% - 25vw);
    max-width: 100vw;
}

/* Video Background Styles */
.wp-block-custom-hero-video .video-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.wp-block-custom-hero-video .video-background iframe {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 177.77777778%;
    height: 177.77777778%;
    min-width: 100%;
    min-height: 100%;
    transform: translate(-50%, -50%) scale(1.2);
    pointer-events: none;
    border: none;
}

/* Video Overlay for better text readability */
.wp-block-custom-hero-video .video-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(26, 43, 90, 0.6);
    z-index: 2;
}

/* Hero Container */
.wp-block-custom-hero-video .hero-container {
    position: relative;
    z-index: 3;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 40px;
}

.wp-block-custom-hero-video .hero-content {
    width: 100%;
    max-width: 600px;
}

.wp-block-custom-hero-video .hero-content[style*="center"] {
    margin: 0 auto;
}

.wp-block-custom-hero-video .hero-content[style*="right"] {
    margin-left: auto;
}

.wp-block-custom-hero-video .hero-text {
    color: var(--hero-text-light);
}

.wp-block-custom-hero-video .hero-text h1 {
    font-size: 48px;
    font-weight: 700;
    margin-bottom: 20px;
    line-height: 1.2;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
    color: var(--hero-text-light);
}

.wp-block-custom-hero-video .hero-text p {
    font-size: 20px;
    margin-bottom: 30px;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.3);
    color: var(--hero-text-light);
}

.wp-block-custom-hero-video .hero-button {
    display: inline-block;
    background-color: var(--hero-primary-blue);
    color: var(--hero-text-light);
    padding: 15px 40px;
    text-decoration: none;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s;
    border: 2px solid transparent;
    cursor: pointer;
}

.wp-block-custom-hero-video .hero-button:hover {
    background-color: transparent;
    border-color: var(--hero-text-light);
    transform: translateY(-2px);
    color: var(--hero-text-light);
}

.wp-block-custom-hero-video .hero-arrow {
    font-size: 40px;
    margin-top: 40px;
    animation: heroArrowBounce 2s infinite;
    color: var(--hero-text-light);
}

/* Animations */
@keyframes heroArrowBounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0);
    }
    40% {
        transform: translateY(-10px);
    }
    60% {
        transform: translateY(-5px);
    }
}

/* Mobile Styles */
@media (max-width: 768px) {
    .wp-block-custom-hero-video {
        height: 60vh;
        min-height: 400px;
        max-height: 600px;
    }
    
    .wp-block-custom-hero-video .hero-container {
        padding: 0 20px;
    }
    
    .wp-block-custom-hero-video .hero-text h1 {
        font-size: 32px;
    }
    
    .wp-block-custom-hero-video .hero-text p {
        font-size: 16px;
    }
    
    .wp-block-custom-hero-video .hero-button {
        padding: 12px 30px;
        font-size: 14px;
    }
    
    .wp-block-custom-hero-video .hero-arrow {
        font-size: 32px;
        margin-top: 30px;
    }
}

/* Tablet Styles */
@media (max-width: 1024px) and (min-width: 769px) {
    .wp-block-custom-hero-video .hero-text h1 {
        font-size: 40px;
    }
    
    .wp-block-custom-hero-video .hero-text p {
        font-size: 18px;
    }
}