/* CSS for Hero Component */

/* Hero Section - adjust padding for better spacing */
.hero {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    /* justify-content: center; */
    text-align: center;
    padding: 0;
    position: relative;
    overflow: hidden;
    width: 100%;
}

.hero-content {
    max-width: 800px;
    margin: 0 auto;
    position: relative;
    z-index: 2;
    width: 100%;
    padding: 20px;
    border-radius: var(--radius-lg);
}

.hero-content h1,
.hero-description,
.hero .explore-btn {
    opacity: 0;
    animation: heroFadeIn 0.6s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

.hero-content h1 {
    animation-delay: 0.1s;
    font-size: 3.8rem;
    font-weight: 700;
    margin-bottom: 32px;
    line-height: 1.1;
    padding-top: 0;
    color: var(--light-text);
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

/* Admin bar specific hero title adjustment */
.admin-bar .hero-content h1 {
    padding-top: 0;
}

.hero-description {
    animation-delay: 0.2s;
    font-size: 1.1rem;
    color: var(--text-secondary);
    margin-bottom: 32px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.hero .explore-btn {
    animation-delay: 0.3s;
    background: transparent;
    color: var(--light-text);
    padding: 18px 36px;
    border-radius: 50px;
    font-size: 1.5rem;
    font-weight: 500;
    position: relative;
    overflow: hidden;
    z-index: 1;
    border: 2px solid var(--primary-color);
    transition: all 0.3s ease;
}

.hero .explore-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, var(--primary-color), var(--secondary-color));
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: -1;
    border-radius: 999px;
}

.hero .explore-btn:hover {
    transform: translateY(-2px);
    border-color: transparent;
    box-shadow: 0 10px 20px rgba(255, 0, 138, 0.3);
    border-radius: 50px;
}

.hero .explore-btn:hover::before {
    opacity: 1;
}

/* Video Container - Responsive Setup */
.video-container {
    position: relative;
    width: 100%; 
    padding-bottom: 56.25%; /* 16:9 aspect ratio */
    height: 0;
    overflow: hidden;
    margin-top: 56px; /* Add some space above the video */
    border-radius: 8px; /* Optional: rounded corners */
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15); /* Optional: subtle shadow */
}

.video-wrapper {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.video-wrapper iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none; /* Ensure no iframe border */
}

/* Video Overlay for Click Interaction */
.video-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    cursor: pointer; 
    z-index: 1; /* Ensure it's above the iframe (though YT API might manage this) */
    /* Optional: Add a subtle overlay effect on hover if desired */
    /* background-color: rgba(0, 0, 0, 0.1); */
    /* opacity: 0; */
    /* transition: opacity 0.3s ease; */
}

/* .video-overlay:hover {
    opacity: 1; 
} */

/* Audio Indicator */
.audio-indicator {
    position: absolute;
    bottom: 15px;
    right: 15px;
    background-color: rgba(0, 0, 0, 0.6);
    color: #fff;
    padding: 8px 10px;
    border-radius: 50%;
    z-index: 2; /* Above the overlay */
    font-size: 1rem; /* Adjust size as needed */
    pointer-events: none; /* Make sure it doesn't interfere with clicks on the overlay */
    display: flex; /* Center the icon */
    align-items: center;
    justify-content: center;
    width: 35px; /* Fixed size */
    height: 35px; /* Fixed size */
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

/* Animations */
@keyframes heroFadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Mobile Optimizations */
@media (max-width: 768px) {
    /* Hero Section Mobile Optimization */
    .hero {
        min-height: auto;
        padding-top: 60px;
        padding-bottom: 0;
    }
    
    .hero-content {
        padding: 10px;
    }
    
    .hero-content h1 {
        font-size: 2.2rem;
        margin-bottom: 16px;
    }
    
    .hero-description {
        font-size: 1rem;
        margin-bottom: 20px;
    }
    
    .hero .explore-btn {
        padding: 15px 30px;
        font-size: 1.425rem;
        border-radius: 50px;
    }
    
    .video-container {
        margin-top: 25px;
    }
}

/* Further optimizations for very small screens */
@media (max-width: 480px) {
    /* Hero Section Small Screen Optimization */
    .hero {
        padding-top: 0px;
    }
    
    .hero-content h1 {
        font-size: 2.2rem;
        margin-bottom: 20px;
    }
    
    .hero-description {
        font-size: 0.9rem;
        margin-bottom: 16px;
    }
    
    .hero .explore-btn {
        padding: 12px 24px;
        font-size: 1.1rem;
        margin: 20px auto;
    }
    
    .video-container {
        margin-top: 20px;
    }
} 