/**
 * Hero Section Component - Isolated Styles (BEM Naming)
 * Component prefix: ee-hero-section
 */

/* Component Root - Isolated from global styles */
.ee-hero-section {
    /* Reset inherited styles */
    all: initial;
    display: block;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    
    /* Component styles */
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    min-height: 60vh; /* Make hero section taller - fills 60% of viewport height */
    padding: 100px 0;
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center; /* Vertically center content */
    /* Ensure background image doesn't repeat on main element */
    background-repeat: no-repeat;
    background-size: cover;
    background-position: center;
}

/* Optional background video (when BackgroundVideoUrl is set) */
.ee-hero-section__video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
}

.ee-hero-section__video-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.75) 0%, rgba(118, 75, 162, 0.75) 100%);
    z-index: 1;
}

.ee-hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: var(--hero-bg-image);
    background-size: 120% 120%;
    background-position: center;
    background-repeat: no-repeat;
    opacity: 0.3;
    z-index: 1;
    animation: heroBackgroundZoom 20s ease-in-out infinite alternate;
    will-change: transform;
}

/* When a background image is set (default or override), use dark base like legacy instead of purple gradient */
.ee-hero-section--has-bg-image {
    background: #1a1a1a;
}

.ee-hero-section--has-video::before {
    display: none;
}

@keyframes heroBackgroundZoom {
    0% {
        transform: scale(1);
    }
    100% {
        transform: scale(1.1); /* Subtle 10% zoom */
    }
}

.ee-hero-section__container {
    position: relative;
    z-index: 2;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

.ee-hero-section__loading {
    text-align: center;
    padding: 2rem;
    color: white;
}

/* Cart Button - Desktop (Fixed) */
.ee-hero-section__cart-button {
    position: fixed;
    top: 1rem;
    right: 1rem;
    z-index: 1000;
}

.ee-hero-section__cart-button-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: rgba(255, 255, 255, 0.95);
    border: 1px solid rgba(255, 255, 255, 0.5);
    border-radius: 0.5rem;
    color: #333;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    text-decoration: none;
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
    font-family: inherit;
}

.ee-hero-section__cart-button-btn:hover {
    background: rgba(255, 255, 255, 1);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.25);
}

.ee-hero-section__cart-button-btn i {
    font-size: 1.1rem;
}

.ee-hero-section__cart-button-label {
    font-size: 0.9rem;
}

.ee-hero-section__cart-button-badge {
    background: #007bff;
    color: white;
    border-radius: 50%;
    padding: 0.25rem 0.5rem;
    font-size: 0.75rem;
    min-width: 1.5rem;
    text-align: center;
    display: none;
}

.ee-hero-section__cart-button-badge.show {
    display: inline-block;
}

/* Content */
.ee-hero-section__content {
    position: relative;
    z-index: 1;
}

/* Event Logo - Mobile (Above Title) */
.ee-hero-section__logo-mobile {
    display: none;
    text-align: center;
    margin-bottom: 1rem;
}

.ee-hero-section__logo-mobile img {
    display: inline-block;
    transition: transform 0.3s ease;
    max-width: 180px;
    border-radius: 8px;
}

.ee-hero-section__logo-mobile img:hover {
    transform: scale(1.02);
}

/* Event Logo - Desktop (Right Side) */
.ee-hero-section__logo-desktop {
    display: block;
}

.ee-hero-section__logo-desktop img {
    max-height: 300px;
    border-radius: 8px;
}

/* Title */
.ee-hero-section__title {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

/* Subtitle */
.ee-hero-section__subtitle {
    font-size: 1.5rem;
    margin-bottom: 2rem;
    opacity: 0.95;
}

/* When & Where - date, time, location (prominent like legacy) */
.ee-hero-section__when-where {
    margin-bottom: 1.5rem;
}

.ee-hero-section__when-where-inner {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 1.25rem 2rem;
}

.ee-hero-section__when-where-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.1rem;
    font-weight: 500;
    opacity: 0.98;
}

.ee-hero-section__when-where-item i {
    font-size: 1rem;
    opacity: 0.9;
}

.ee-hero-section__when-where-link {
    color: inherit;
    text-decoration: none;
    cursor: pointer;
}

.ee-hero-section__when-where-link:hover {
    text-decoration: underline;
}

/* Legacy meta (kept for compatibility) */
.ee-hero-section__meta {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.ee-hero-section__meta-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(255,255,255,0.2);
    padding: 0.5rem 1rem;
    border-radius: 25px;
    backdrop-filter: blur(10px);
}

/* Buttons */
.ee-hero-section__buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    margin-bottom: 2rem;
}

.ee-hero-section__button {
    padding: 1rem 2.5rem;
    font-size: 1.1rem;
    font-weight: 600;
    border-radius: 50px;
    border: none;
    transition: all 0.3s;
    cursor: pointer;
    font-family: inherit;
}

.ee-hero-section__button--primary {
    background: white;
    color: #007bff;
}

.ee-hero-section__button--primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
}

.ee-hero-section__button--secondary {
    background: transparent;
    color: white;
    border: 2px solid white;
}

.ee-hero-section__button--secondary:hover {
    background: white;
    color: #007bff;
}

/* Countdown */
.ee-hero-section__countdown {
    background: rgba(255,255,255,0.15);
    padding: 1.5rem;
    border-radius: 15px;
    margin-top: 2rem;
    backdrop-filter: blur(10px);
}

.ee-hero-section__countdown-timer {
    display: flex;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
}

.ee-hero-section__countdown-item {
    text-align: center;
}

.ee-hero-section__countdown-value {
    font-size: 2.5rem;
    font-weight: 700;
    display: block;
}

.ee-hero-section__countdown-label {
    font-size: 0.9rem;
    opacity: 0.9;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.ee-hero-section__countdown-text {
    text-align: center;
    margin-top: 0.5rem;
    margin-bottom: 0;
    font-size: 0.85rem;
}

/* Premier Sponsor - Hero Region */
.ee-hero-section__presenting-sponsor {
    margin-top: 1rem;
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    height: auto;
}

.ee-hero-section__presenting-sponsor::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    background: linear-gradient(
        180deg,
        rgba(0, 0, 0, 0.45),
        rgba(0, 0, 0, 0.75)
    );
    backdrop-filter: blur(10px);
    border-top: 2px solid rgba(255,215,0,0.8);
    box-shadow: 0 2px 12px rgba(0,0,0,0.09);
    z-index: 0;
}

.ee-hero-section__presenting-sponsor-content {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 2rem;
    width: 100%;
    max-width: 1000px;
    padding: 1.5rem 1.5rem 2rem;
}

.ee-hero-section__presenting-sponsor-left {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    flex-shrink: 0;
}

.ee-hero-section__presenting-sponsor-label {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    opacity: 0.85;
    margin-bottom: 0.5rem;
    font-weight: 500;
}

.ee-hero-section__presenting-sponsor-logo-wrapper {
    margin: 0.5rem 0;
}

.ee-hero-section__presenting-sponsor-logo-wrapper::before {
    content: '';
    display: block;
    width: 60px;
    height: 2px;
    background: rgba(255,215,0,0.8);
    margin: 0 auto 0.5rem auto;
}

.ee-hero-section__presenting-sponsor-logo {
    max-height: 100px;
    max-width: 200px;
    object-fit: contain;
    filter: drop-shadow(0 2px 8px rgba(0,0,0,0.2));
}

.ee-hero-section__presenting-sponsor-subline {
    font-size: 0.8rem;
    opacity: 0.8;
    margin-top: 0.5rem;
}

.ee-hero-section__presenting-sponsor-link {
    color: white;
    text-decoration: none;
    font-weight: 500;
    transition: opacity 0.3s;
}

.ee-hero-section__presenting-sponsor-link:hover {
    opacity: 1;
    text-decoration: underline;
}

.ee-hero-section__presenting-sponsor-right {
    flex: 1;
    text-align: left;
}

.ee-hero-section__presenting-sponsor-writeup {
    font-size: 0.9rem;
    line-height: 1.6;
    opacity: 0.95;
}

.ee-hero-section__presenting-sponsor-writeup p {
    margin-bottom: 0.5rem;
}

.ee-hero-section__presenting-sponsor-writeup p:last-child {
    margin-bottom: 0;
}

/* Mobile Styles */
@media (max-width: 768px) {
    .ee-hero-section {
        min-height: 50vh; /* Smaller on mobile but still prominent */
        padding-top: 33.6px; /* ~30% reduction */
        padding-bottom: 1.25rem;
    }
    
    .ee-hero-section__cart-button {
        position: absolute;
        top: 0.5rem;
        right: 0.5rem;
    }
    
    .ee-hero-section__logo-mobile {
        display: block !important;
        margin-top: -0.6rem;
        margin-bottom: 0.9rem;
        padding: 0.875rem;
    }
    
    .ee-hero-section__logo-mobile img {
        max-width: 280px !important;
        width: auto;
        height: auto;
    }
    
    .ee-hero-section__logo-desktop {
        display: none !important;
    }
    
    .ee-hero-section__title {
        font-size: 1.75rem !important;
        margin-top: 0 !important;
    }
    
    .ee-hero-section__subtitle {
        font-size: 0.95rem !important;
        margin-bottom: 0.875rem !important;
    }
    
    .ee-hero-section__when-where-inner {
        gap: 0.75rem 1rem;
    }
    
    .ee-hero-section__when-where-item {
        font-size: 0.9rem;
    }
    
    .ee-hero-section__when-where-item i {
        font-size: 0.85rem;
    }
    
    .ee-hero-section__meta {
        flex-direction: column;
        gap: 0.375rem !important;
    }
    
    .ee-hero-section__meta-item {
        font-size: 0.85rem;
        padding: 0.4rem 0.8rem;
    }
    
    .ee-hero-section__buttons {
        flex-direction: column;
        gap: 0.625rem;
    }
    
    .ee-hero-section__button {
        width: 100%;
        padding: 0.875rem 1.5rem;
        font-size: 1rem;
    }
    
    .ee-hero-section__countdown-timer {
        gap: 0.5rem;
    }
    
    .ee-hero-section__countdown-item {
        padding: 0.625rem;
    }
    
    .ee-hero-section__countdown-value {
        font-size: 1.5rem;
    }
    
    .ee-hero-section__countdown-label {
        font-size: 0.7rem;
    }
    
    .ee-hero-section__presenting-sponsor {
        margin-top: 0.875rem !important;
        margin-bottom: 0 !important;
    }
    
    .ee-hero-section__presenting-sponsor-content {
        flex-direction: column !important;
        gap: 0.875rem !important;
        padding: 0.875rem 1.25rem 1.25rem !important;
    }
    
    .ee-hero-section__presenting-sponsor-left,
    .ee-hero-section__presenting-sponsor-right {
        width: 100% !important;
    }
    
    .ee-hero-section__presenting-sponsor-logo {
        max-width: 180px !important;
        max-height: 140px !important;
    }
    
    .ee-hero-section {
        padding-bottom: 1.25rem !important;
    }
}
