/* Event Hero Section Styles */

.event-hero-section {
    position: relative;
    width: 100vw;
    margin-left: calc(-50vw + 50%);
    margin-right: calc(-50vw + 50%);
    max-width: none !important;
    min-height: 500px;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

/* Hero Size Variants */
.event-hero-section.hero-size-compact {
    /* increase compact min-height so descriptions can show without being clipped */
    min-height: 220px;
}

.event-hero-section.hero-size-small {
    min-height: 350px;
}

.event-hero-section.hero-size-medium {
    min-height: 500px;
}

.event-hero-section.hero-size-large {
    min-height: 700px;
}

/* Hero Padding Variants - Top */
.event-hero-section.hero-padding-top-default {
    /* Use default padding from min-height */
}

.event-hero-section.hero-padding-top-20 {
    padding-top: 20px;
}

.event-hero-section.hero-padding-top-40 {
    padding-top: 40px;
}

.event-hero-section.hero-padding-top-60 {
    padding-top: 60px;
}

.event-hero-section.hero-padding-top-80 {
    padding-top: 80px;
}

/* Hero Padding Variants - Bottom */
.event-hero-section.hero-padding-bottom-default {
    /* Use default padding */
}

.event-hero-section.hero-padding-bottom-20 {
    padding-bottom: 20px;
}

.event-hero-section.hero-padding-bottom-40 {
    padding-bottom: 40px;
}

.event-hero-section.hero-padding-bottom-60 {
    padding-bottom: 60px;
}

.event-hero-section.hero-padding-bottom-80 {
    padding-bottom: 80px;
}

.single-lunarlyra_event .entry-content > .event-hero-section {
    margin-left: calc(-50vw + 50%) !important;
    margin-right: calc(-50vw + 50%) !important;
    max-width: none !important;
}

.event-hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 2;
}

/* Video Background Styles */
.event-hero-video-wrapper {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: 0;
}

.event-hero-video {
    position: absolute;
    top: 50%;
    left: 50%;
    min-width: 100%;
    min-height: 100%;
    width: auto;
    height: auto;
    transform: translate(-50%, -50%);
    object-fit: cover;
}

.has-video-background {
    background-size: cover;
    background-position: center;
}

/* Reduce motion preference - pause video animation */
@media (prefers-reduced-motion: reduce) {
    .event-hero-video {
        animation: none;
    }
}

.event-hero-content {
    position: relative;
    z-index: 3;
    padding: 60px 20px;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
}

/* Size-specific content padding */
.hero-size-compact .event-hero-content {
    padding: 15px 20px;
    max-width: 680px;
}

.hero-size-small .event-hero-content {
    padding: 40px 20px;
    max-width: 720px;
}

.hero-size-medium .event-hero-content {
    padding: 60px 20px;
}

.hero-size-large .event-hero-content {
    padding: 80px 20px;
}

/* Centered Layout (Default) */
.hero-layout-centered .event-hero-content {
    text-align: center;
}

.hero-layout-centered .event-hero-title {
    font-size: 3.5rem;
    font-weight: normal;
    margin: 0 0 20px;
    line-height: 1.2;
    font-family: 'PlaylistScript', sans-serif;
}

/* Ensure theme utilities (or themes) can't force uppercase on our hero titles
   We explicitly opt for no text-transform here; if editors want all-caps, use
   the `.event-hero-title--uppercase` helper class on the H1. */
.event-hero-title,
.event-hero__title {
    text-transform: none !important;
}

/* Optional helper: explicitly force uppercase when desired */
.event-hero-title--uppercase {
    text-transform: uppercase !important;
}

.hero-layout-centered .event-hero-tagline {
    font-family: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
    font-size: 1.5rem;
    margin: 0 0 20px;
}

.hero-layout-centered .event-hero-date-location {
    font-family: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
    font-size: 1.2rem;
    margin: 0 0 15px;
}

.hero-layout-centered .event-hero-additional-info {
    font-size: 1rem;
    margin: 0 0 20px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.hero-layout-centered .event-hero-description {
    font-family: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
    font-size: 1.1rem;
    margin: 0 0 30px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.hero-layout-centered .event-hero-cta {
    margin-top: 30px;
}

/* Centered Layout - Size Variants */
.hero-size-compact.hero-layout-centered .event-hero-title {
    font-size: 1.5rem;
    margin-bottom: 5px;
}

.hero-size-compact.hero-layout-centered .event-hero-tagline {
    font-size: 1rem;
    margin-bottom: 5px;
}

.hero-size-compact.hero-layout-centered .event-hero-date-location {
    font-size: 0.9rem;
    margin-bottom: 5px;
}

.hero-size-compact.hero-layout-centered .event-hero-description {
    /* show description in compact mode — use slightly smaller type to fit */
    font-size: 0.95rem;
    margin-bottom: 8px;
}

.hero-size-compact.hero-layout-centered .event-hero-cta {
    margin-top: 10px;
}

.hero-size-small.hero-layout-centered .event-hero-title {
    font-size: 2.5rem;
}

.hero-size-small.hero-layout-centered .event-hero-tagline {
    font-size: 1.25rem;
}

.hero-size-large.hero-layout-centered .event-hero-title {
    font-size: 4.5rem;
}

.hero-size-large.hero-layout-centered .event-hero-tagline {
    font-size: 1.75rem;
}

.hero-size-large.hero-layout-centered .event-hero-description {
    font-size: 1.25rem;
}

/* Left Aligned Layout */
.hero-layout-left-aligned .event-hero-content {
    text-align: left;
    max-width: 1200px;
    padding-left: 60px;
    margin-left: 0;
    margin-right: auto;
}

.hero-layout-left-aligned .event-hero-title {
    font-size: 3.5rem;
    font-weight: normal;
    margin: 0 0 20px;
    line-height: 1.2;
    max-width: 700px;
    font-family: 'PlaylistScript', sans-serif;
}

.hero-layout-left-aligned .event-hero-tagline {
    font-family: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
    font-size: 1.5rem;
    margin: 0 0 20px;
    max-width: 600px;
}

.hero-layout-left-aligned .event-hero-date-location {
    font-family: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
    font-size: 1.2rem;
    margin: 0 0 15px;
}

.hero-layout-left-aligned .event-hero-additional-info {
    font-size: 1rem;
    margin: 0 0 20px;
    max-width: 600px;
}

.hero-layout-left-aligned .event-hero-description {
    font-family: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
    font-size: 1.1rem;
    margin: 0 0 30px;
    max-width: 600px;
}

.hero-layout-left-aligned .event-hero-cta {
    margin-top: 30px;
}

/* Left Aligned Layout - Size Variants */
.hero-size-compact.hero-layout-left-aligned .event-hero-title {
    font-size: 1.5rem;
    margin-bottom: 5px;
}

.hero-size-compact.hero-layout-left-aligned .event-hero-tagline {
    font-size: 1rem;
    margin-bottom: 5px;
}

.hero-size-compact.hero-layout-left-aligned .event-hero-date-location {
    font-size: 0.9rem;
    margin-bottom: 5px;
}

.hero-size-compact.hero-layout-left-aligned .event-hero-description {
    font-size: 0.95rem;
    margin-bottom: 8px;
}

.hero-size-compact.hero-layout-left-aligned .event-hero-cta {
    margin-top: 10px;
}

.hero-size-small.hero-layout-left-aligned .event-hero-title {
    font-size: 2.5rem;
}

.hero-size-small.hero-layout-left-aligned .event-hero-tagline {
    font-size: 1.25rem;
}

.hero-size-large.hero-layout-left-aligned .event-hero-title {
    font-size: 4.5rem;
}

.hero-size-large.hero-layout-left-aligned .event-hero-tagline {
    font-size: 1.75rem;
}

.hero-size-large.hero-layout-left-aligned .event-hero-description {
    font-size: 1.25rem;
}

/* Middle Left Layout - Horizontally centered container, left aligned text */
.hero-layout-middle-left .event-hero-content {
    text-align: left;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
    padding-left: 40px;
    padding-right: 40px;
}

.hero-layout-middle-left .event-hero-title {
    font-size: 3.5rem;
    font-weight: normal;
    margin: 0 0 20px;
    line-height: 1.2;
    font-family: 'PlaylistScript', sans-serif;
}

.hero-layout-middle-left .event-hero-tagline {
    font-family: var(--event-font-primary, 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif);
    font-size: 1.5rem;
    margin: 0 0 20px;
}

.hero-layout-middle-left .event-hero-date-location {
    font-family: var(--event-font-primary, 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif);
    font-size: 1.2rem;
    margin: 0 0 15px;
}

.hero-layout-middle-left .event-hero-additional-info {
    font-size: 1rem;
    margin: 0 0 20px;
}

.hero-layout-middle-left .event-hero-description {
    font-family: var(--event-font-primary, 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif);
    font-size: 1.1rem;
    margin: 0 0 30px;
}

.hero-layout-middle-left .event-hero-cta {
    margin-top: 30px;
}

/* Middle Left Layout - Size Variants */
.hero-size-compact.hero-layout-middle-left .event-hero-title {
    font-size: 1.5rem;
    margin-bottom: 5px;
}

.hero-size-compact.hero-layout-middle-left .event-hero-tagline {
    font-size: 1rem;
    margin-bottom: 5px;
}

.hero-size-compact.hero-layout-middle-left .event-hero-date-location {
    font-size: 0.9rem;
    margin-bottom: 5px;
}

.hero-size-compact.hero-layout-middle-left .event-hero-description {
    font-size: 0.95rem;
    margin-bottom: 8px;
}

.hero-size-compact.hero-layout-middle-left .event-hero-cta {
    margin-top: 10px;
}

.hero-size-small.hero-layout-middle-left .event-hero-title {
    font-size: 2.5rem;
}

.hero-size-small.hero-layout-middle-left .event-hero-tagline {
    font-size: 1.25rem;
}

.hero-size-large.hero-layout-middle-left .event-hero-title {
    font-size: 4.5rem;
}

.hero-size-large.hero-layout-middle-left .event-hero-tagline {
    font-size: 1.75rem;
}

.hero-size-large.hero-layout-middle-left .event-hero-description {
    font-size: 1.25rem;
}

/* Middle Left - Overlay content style */
.hero-layout-middle-left.hero-overlay-content .event-hero-content {
    display: inline-block;
    padding: 50px 60px;
    border-radius: 8px;
}

/* Overlay Behind Text/Content Style - Applied to any layout */
.hero-overlay-content .event-hero-overlay {
    display: none;
}

.hero-overlay-content .event-hero-content {
    padding: 50px 60px;
    border-radius: 8px;
}

.hero-layout-centered.hero-overlay-content .event-hero-content {
    display: inline-block;
}

.hero-layout-left-aligned.hero-overlay-content .event-hero-content {
    display: inline-block;
    max-width: 800px;
    padding-left: 60px;
}

.hero-size-compact.hero-layout-left-aligned.hero-overlay-content .event-hero-content {
    max-width: 680px;
}

.hero-size-small.hero-layout-left-aligned.hero-overlay-content .event-hero-content {
    max-width: 720px;
}

/* Split Layout */
.hero-layout-split {
    background-color: #f5f5f5;
}

.hero-layout-split .event-hero-overlay {
    display: none;
}

.hero-layout-split .event-hero-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
    max-width: 1400px;
    padding: 60px;
}

.hero-layout-split .event-hero-text-content {
    text-align: left;
}

.hero-layout-split .event-hero-image-content {
    position: relative;
    min-height: 400px;
}

.hero-layout-split .event-hero-background-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 8px;
}

.hero-layout-split .event-hero-title {
    font-size: 3rem;
    font-weight: normal;
    margin: 0 0 20px;
    line-height: 1.2;
    font-family: 'PlaylistScript', sans-serif;
}

.hero-layout-split .event-hero-tagline {
    font-family: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
    font-size: 1.4rem;
    margin: 0 0 20px;
}

.hero-layout-split .event-hero-date-location {
    font-family: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
    font-size: 1.1rem;
    margin: 0 0 15px;
}

.hero-layout-split .event-hero-additional-info {
    font-size: 1rem;
    margin: 0 0 20px;
}

.hero-layout-split .event-hero-description {
    font-family: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
    font-size: 1.1rem;
    margin: 0 0 30px;
}

.hero-layout-split .event-hero-cta {
    margin-top: 30px;
}

/* Split Layout - Size Variants */
.hero-size-compact.hero-layout-split .event-hero-content {
    padding: 15px;
    gap: 15px;
}

.hero-size-compact.hero-layout-split .event-hero-image-content {
    min-height: 100px;
}

.hero-size-compact.hero-layout-split .event-hero-title {
    font-size: 1.25rem;
    margin-bottom: 5px;
}

.hero-size-compact.hero-layout-split .event-hero-tagline {
    font-size: 0.9rem;
    margin-bottom: 5px;
}

.hero-size-compact.hero-layout-split .event-hero-description {
    font-size: 0.95rem;
    margin-bottom: 8px;
}

.hero-size-small.hero-layout-split .event-hero-content {
    padding: 40px;
    gap: 40px;
}

.hero-size-small.hero-layout-split .event-hero-image-content {
    min-height: 300px;
}

.hero-size-small.hero-layout-split .event-hero-title {
    font-size: 2.25rem;
}

.hero-size-large.hero-layout-split .event-hero-content {
    padding: 80px;
    gap: 80px;
}

.hero-size-large.hero-layout-split .event-hero-image-content {
    min-height: 500px;
}

.hero-size-large.hero-layout-split .event-hero-title {
    font-size: 4rem;
}

.hero-size-large.hero-layout-split .event-hero-tagline {
    font-size: 1.6rem;
}

/* CTA Button Styles */
.event-hero-cta-button {
    display: inline-block;
    padding: 15px 40px;
    font-size: 1.1rem;
    font-weight: 600;
    text-decoration: none;
    border-radius: 4px;
    transition: all 0.3s ease;
}

.event-hero-cta-button:hover {
    opacity: 0.9;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

/* Minimalist Video Layout - CTA button only over video background */
.hero-layout-minimalist-video {
    position: relative;
    min-height: 600px;
    z-index: 10000;
    overflow: visible !important;
}

.hero-layout-minimalist-video .event-hero-content {
    padding: 0;
    position: static;
}

.hero-layout-minimalist-video .event-hero-cta {
    position: absolute;
    top: -33px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10000;
    margin-top: 0;
}

.hero-layout-minimalist-video .event-hero-cta-bottom {
    position: absolute;
    top: auto;
    bottom: -33px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10000;
    margin-bottom: 0;
}

/* Size variants for minimalist video */
.hero-size-compact.hero-layout-minimalist-video {
    min-height: 300px;
}

.hero-size-small.hero-layout-minimalist-video {
    min-height: 450px;
}

.hero-size-medium.hero-layout-minimalist-video {
    min-height: 600px;
}

.hero-size-large.hero-layout-minimalist-video {
    min-height: 800px;
}

/* Editor Preview Styles */
.is-editor-preview {
    max-height: 200px;
    min-height: 200px;
}

.is-editor-preview .event-hero-title {
    font-size: 1.5rem !important;
}

.is-editor-preview .event-hero-tagline,
.is-editor-preview .event-hero-date-location,
.is-editor-preview .event-hero-additional-info,
.is-editor-preview .event-hero-description {
    font-size: 0.9rem !important;
    margin-bottom: 5px !important;
}

.is-editor-preview .event-hero-cta {
    display: none;
}

/* Responsive Styles */
@media (max-width: 1024px) {
    .hero-layout-split .event-hero-content {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .hero-layout-split .event-hero-image-content {
        order: -1;
    }
    
    .hero-layout-left-aligned .event-hero-content {
        padding-left: 40px;
        margin-left: 0 !important; /* Reset horizontal offset on smaller screens */
        text-align: center;
    }
    
    .hero-layout-left-aligned .event-hero-title,
    .hero-layout-left-aligned .event-hero-tagline,
    .hero-layout-left-aligned .event-hero-date-location,
    .hero-layout-left-aligned .event-hero-additional-info,
    .hero-layout-left-aligned .event-hero-description,
    .hero-layout-left-aligned .event-hero-cta {
        max-width: 100%;
        margin-left: auto;
        margin-right: auto;
    }
}

@media (max-width: 768px) {
    .event-hero-section {
        min-height: 300px;
    }
    
    .event-hero-content {
        padding: 40px 20px;
    }
    
    .hero-layout-centered .event-hero-title,
    .hero-layout-left-aligned .event-hero-title,
    .hero-layout-split .event-hero-title {
        font-size: 2rem;
    }
    
    .hero-layout-centered .event-hero-tagline,
    .hero-layout-left-aligned .event-hero-tagline,
    .hero-layout-split .event-hero-tagline {
        font-size: 1.2rem;
    }
    
    .hero-layout-centered .event-hero-date-location,
    .hero-layout-left-aligned .event-hero-date-location,
    .hero-layout-split .event-hero-date-location {
        font-size: 1rem;
    }
    
    .hero-layout-left-aligned .event-hero-content {
        padding-left: 20px;
    }
    
    .hero-layout-split .event-hero-content {
        padding: 40px 20px;
    }
}
