/**
 * Hero Section Styles
 * Static hero replacement for Smart Slider
 * 
 * @package TicketSystemTango
 */

/* ==========================================================================
   Hero Section - Core Layout
   ========================================================================== */

.tev-hero {
    --hero-padding-y: clamp(60px, 10vh, 120px);
    --hero-padding-x: clamp(20px, 5vw, 60px);
    --hero-gap: clamp(40px, 6vw, 80px);
    --hero-text-max-width: 580px;
    --hero-min-height: 100vh;

    display: grid;
    grid-template-columns: 1fr;
    align-items: center;
    gap: var(--hero-gap);
    min-height: var(--hero-min-height);
    padding: var(--hero-padding-y) var(--hero-padding-x);
    margin: 0 calc(50% - 50vw);
    width: 100vw;
    background-color: var(--ts-black, #0a0a0a);
    position: relative;
    overflow: hidden;
}

/* Desktop: Two-column layout */
@media (min-width: 1024px) {
    .tev-hero {
        grid-template-columns: 1fr 1fr;
        padding: var(--hero-padding-y) clamp(40px, 8vw, 120px);
    }
}

/* ==========================================================================
   Hero Logo (Mobile Only)
   ========================================================================== */

.tev-hero__logo-wrapper {
    display: none;
}

@media (max-width: 768px) {
    .tev-hero__logo-wrapper {
        display: flex;
        justify-content: center;
        width: 100%;
        padding-bottom: 24px;
    }

    .tev-hero__logo {
        max-width: 280px;
        height: auto;
        opacity: 1;
    }
}

/* ==========================================================================
   Hero Text Content
   ========================================================================== */

.tev-hero__content {
    display: flex;
    flex-direction: column;
    gap: 24px;
    max-width: var(--hero-text-max-width);
    z-index: 2;
}

@media (min-width: 1024px) {
    .tev-hero__content {
        order: 1;
    }
}

/* Badge */
.tev-hero__badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background: rgba(198, 166, 100, 0.15);
    border: 1px solid var(--ts-gold, #c6a664);
    border-radius: var(--ts-radius-sm, 4px);
    font-family: var(--font-body, 'Inter', sans-serif);
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--ts-gold, #c6a664);
    width: fit-content;
}

.tev-hero__badge::before {
    content: '';
    width: 8px;
    height: 8px;
    background: var(--ts-gold, #c6a664);
    border-radius: 50%;
    animation: pulse-dot 2s ease-in-out infinite;
}

@keyframes pulse-dot {

    0%,
    100% {
        opacity: 1;
        transform: scale(1);
    }

    50% {
        opacity: 0.5;
        transform: scale(0.8);
    }
}

/* Heading */
.tev-hero__title {
    font-family: var(--font-headings, 'Playfair Display', serif);
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-weight: 700;
    line-height: 1.15;
    color: #ffffff;
    margin: 0;
    text-wrap: balance;
}

/* Subtitle */
.tev-hero__subtitle {
    font-family: var(--font-body, 'Inter', sans-serif);
    font-size: clamp(1rem, 2vw, 1.25rem);
    font-weight: 400;
    line-height: 1.6;
    color: var(--ts-lightgrey, #b0b0b0);
    margin: 0;
    max-width: 90%;
}

/* Subscription text */
.tev-hero__subscription-text {
    font-family: var(--font-body, 'Inter', sans-serif);
    font-size: 0.9rem;
    font-weight: 400;
    line-height: 1.5;
    color: var(--ts-mediumgrey, #888888);
    margin: 0;
    font-style: italic;
}

/* ==========================================================================
   Hero CTA Buttons
   ========================================================================== */

.tev-hero__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    margin-top: 8px;
}

.tev-hero__cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-height: 52px;
    padding: 16px 32px;
    background: var(--ts-gold, #c6a664);
    border: none;
    border-radius: var(--ts-radius-sm, 4px);
    font-family: var(--font-body, 'Inter', sans-serif);
    font-size: 0.9rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    text-decoration: none;
    color: var(--ts-black, #0a0a0a);
    cursor: pointer;
    transition: background-color 0.25s ease, transform 0.2s ease, box-shadow 0.25s ease;
    box-shadow: 0 4px 20px rgba(198, 166, 100, 0.25);
}

.tev-hero__cta:hover {
    background: #d4b574;
    transform: translateY(-2px);
    box-shadow: 0 6px 28px rgba(198, 166, 100, 0.35);
    color: var(--ts-black, #0a0a0a);
}

.tev-hero__cta:focus-visible {
    outline: 2px solid #ffffff;
    outline-offset: 3px;
    background: #d4b574;
}

.tev-hero__cta:active {
    transform: translateY(0);
}

/* CTA Arrow icon */
.tev-hero__cta-icon {
    width: 18px;
    height: 18px;
    transition: transform 0.2s ease;
}

.tev-hero__cta:hover .tev-hero__cta-icon {
    transform: translateX(4px);
}

/* ==========================================================================
   Hero Media / Image
   ========================================================================== */

.tev-hero__media {
    position: relative;
    width: 100%;
    height: 100%;
    min-height: 300px;
    z-index: 1;
}

@media (min-width: 1024px) {
    .tev-hero__media {
        order: 2;
        min-height: 500px;
    }
}

.tev-hero__image {
    width: 100%;
    height: 100%;
    min-height: inherit;
    object-fit: cover;
    object-position: center top;
    border-radius: var(--ts-radius-lg, 12px);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

/* Decorative gradient overlay on image */
.tev-hero__media::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg,
            rgba(198, 166, 100, 0.1) 0%,
            transparent 50%);
    border-radius: var(--ts-radius-lg, 12px);
    pointer-events: none;
}

/* ==========================================================================
   Scroll Button (replaces scroll indicator)
   ========================================================================== */

.tev-hero__scroll-btn {
    position: fixed;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    display: inline-flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-height: 52px;
    padding: 16px 32px;
    background: var(--ts-gold, #c6a664);
    border: none;
    border-radius: var(--ts-radius-sm, 4px);
    font-family: var(--font-body, 'Inter', sans-serif);
    font-size: 0.9rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    text-decoration: none;
    color: var(--ts-black, #0a0a0a);
    cursor: pointer;
    transition: background-color 0.25s ease, transform 0.3s ease, box-shadow 0.25s ease, opacity 0.3s ease;
    box-shadow: 0 4px 20px rgba(198, 166, 100, 0.25);
    z-index: 100;
}

/* Hide button when scrolled */
.tev-hero__scroll-btn.is-hidden {
    opacity: 0;
    pointer-events: none;
    transform: translateX(-50%) translateY(20px);
}

.tev-hero__scroll-btn:hover,
.tev-hero__scroll-btn:focus-visible {
    background: #d4b574;
    transform: translateX(-50%) translateY(-2px);
    box-shadow: 0 6px 28px rgba(198, 166, 100, 0.35);
    color: var(--ts-black, #0a0a0a);
}

.tev-hero__scroll-btn:focus-visible {
    outline: 2px solid #ffffff;
    outline-offset: 3px;
    background: #d4b574;
}

.tev-hero__scroll-btn svg {
    width: 18px;
    height: 18px;
    transition: transform 0.2s ease;
}

.tev-hero__scroll-btn:hover svg {
    animation: bounce-down 1s ease-in-out infinite;
}

@keyframes bounce-down {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(4px);
    }
}

/* ==========================================================================
   Mobile Layout - Cinematic Vignette Approach
   Full-bleed image with natural edge fading via radial vignette
   ========================================================================== */

@media (max-width: 768px) {
    .tev-hero {
        --hero-min-height: 100vh;
        --hero-min-height: 100svh;
        --hero-min-height: 100dvh;
        display: flex;
        flex-direction: column;
        gap: 0;
        padding: 40px 24px 80px;
        text-align: center;
        min-height: var(--hero-min-height);
        max-height: var(--hero-min-height);
        overflow: hidden;
        /* Warm dark background that complements image's amber tones */
        background-color: #0f0e0c;
    }

    .tev-hero__content {
        flex: 0 0 auto;
        align-items: center;
        max-width: 100%;
        gap: 16px;
        /* Clean, no gradient - let vignette do the blending */
        background: transparent;
        padding: 0 24px 24px;
        margin: 0 -24px;
        width: calc(100% + 48px);
        position: relative;
        z-index: 10;
    }

    /* Hide badge on mobile */
    .tev-hero__badge {
        display: none;
    }

    .tev-hero__title {
        font-size: clamp(1.75rem, 7vw, 2.5rem);
        line-height: 1.15;
        font-weight: 700;
        text-shadow: 0 2px 24px rgba(0, 0, 0, 0.9),
            0 4px 40px rgba(0, 0, 0, 0.6);
        color: #ffffff;
    }

    .tev-hero__subtitle {
        max-width: 100%;
        font-size: 1rem;
        line-height: 1.5;
        color: var(--ts-lightgrey, #d0d0d0);
        text-shadow: 0 2px 16px rgba(0, 0, 0, 0.8);
        font-weight: 400;
    }

    .tev-hero__subscription-text {
        display: none;
    }

    /* Hide CTA on mobile */
    .tev-hero__actions {
        display: none;
    }

    /* Mobile media - with cinematic vignette container */
    .tev-hero__media {
        flex: 1 1 auto;
        min-height: 0;
        margin: 0 -24px;
        width: calc(100% + 48px);
        position: relative;
        display: flex;
        align-items: center;
        justify-content: center;
        /* Clip the image to container bounds so vignette covers everything */
        overflow: hidden;
    }

    .tev-hero__image {
        width: 100%;
        height: 100%;
        /* Cover ensures image fills container completely */
        object-fit: cover;
        object-position: center 30%;
        border-radius: 0;
        box-shadow: none;
    }

    /* Radial vignette - creates natural spotlight/tunnel effect */
    .tev-hero__media::before {
        content: '';
        position: absolute;
        inset: 0;
        /* Radial vignette: transparent center, dark edges on all sides */
        background: radial-gradient(ellipse 90% 80% at 50% 40%,
                transparent 15%,
                rgba(15, 14, 12, 0.25) 40%,
                rgba(15, 14, 12, 0.6) 70%,
                rgba(15, 14, 12, 0.95) 100%);
        z-index: 3;
        pointer-events: none;
    }

    /* Top fade - blends into content area */
    .tev-hero__media::after {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        height: 40%;
        background: linear-gradient(to bottom,
                #0f0e0c 0%,
                rgba(15, 14, 12, 0.85) 25%,
                rgba(15, 14, 12, 0.5) 55%,
                transparent 100%);
        z-index: 4;
        pointer-events: none;
    }

    /* Inset box-shadow vignette - darkens all edges including bottom */
    .tev-hero__media {
        box-shadow: inset 0 -60px 80px -30px rgba(15, 14, 12, 0.95),
            inset 0 60px 80px -30px rgba(15, 14, 12, 0.8);
    }

    /* Scroll button on mobile - fixed at bottom */
    .tev-hero__scroll-btn {
        position: fixed;
        bottom: 16px;
        left: 50%;
        transform: translateX(-50%);
        background: var(--ts-gold, #c6a664);
        color: var(--ts-black, #0a0a0a);
        border: none;
        padding: 14px 28px;
        font-size: 0.8rem;
        font-weight: 600;
        box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
        transition: opacity 0.3s ease, transform 0.3s ease;
    }

    /* Hide button when scrolled */
    .tev-hero__scroll-btn.is-hidden {
        opacity: 0;
        pointer-events: none;
        transform: translateX(-50%) translateY(20px);
    }

    .tev-hero__scroll-btn:hover,
    .tev-hero__scroll-btn:focus-visible {
        background: #d4b574;
        color: var(--ts-black, #0a0a0a);
        transform: translateX(-50%);
    }

    .tev-hero__scroll-btn svg {
        width: 18px;
        height: 18px;
    }
}

/* Extra small screens */
@media (max-width: 375px) {
    .tev-hero {
        padding: 50px 16px 80px;
        gap: 16px;
    }

    .tev-hero__title {
        font-size: 1.4rem;
    }

    .tev-hero__logo {
        max-width: 240px;
    }

    .tev-hero__media {
        margin: 0 -16px;
        width: calc(100% + 32px);
    }
}

/* Smooth scroll for anchor links */
html {
    scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    .tev-hero__scroll-btn svg,
    .tev-hero__badge::before {
        animation: none;
    }
}