/**
 * Hero Component Styles
 * Seoul Curator Theme
 */

/* Hero Section */
.hero {
    position: relative;
    min-height: 870px;
    width: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    overflow: hidden;
    padding: 0 1.5rem;
}

/* Hero Background Fallback (when no images) */
.hero-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
    background: 
        radial-gradient(ellipse at 20% 50%, rgba(255, 74, 144, 0.15) 0%, transparent 50%),
        radial-gradient(ellipse at 80% 50%, rgba(235, 178, 255, 0.1) 0%, transparent 50%),
        linear-gradient(180deg, var(--color-surface) 0%, var(--color-surface-container) 100%);
}

/* Hero Grid Pattern */
.hero-grid {
    position: absolute;
    inset: 0;
    z-index: 1;
    background-image: 
        linear-gradient(rgba(255, 255, 255, 0.02) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.02) 1px, transparent 1px);
    background-size: 50px 50px;
    pointer-events: none;
}

/* Hero Slideshow Container */
.hero-slideshow {
    position: absolute;
    inset: 0;
    z-index: 0;
    overflow: hidden;
}

/* Individual Slides */
.hero-slide {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    opacity: 0;
    transition: opacity 1.5s ease-in-out;
}

/* Active slide */
.hero-slide.active {
    opacity: 1;
}

/* Slide Overlay - Dark gradient for text readability */
.hero-slide::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(
        180deg,
        rgba(21, 16, 36, 0.85) 0%,
        rgba(21, 16, 36, 0.6) 30%,
        rgba(21, 16, 36, 0.5) 50%,
        rgba(21, 16, 36, 0.6) 70%,
        rgba(21, 16, 36, 0.85) 100%
    );
    z-index: 1;
}

/* Color tint overlay - Pink/Purple theme */
.hero-slide::after {
    content: '';
    position: absolute;
    inset: 0;
    background: 
        radial-gradient(ellipse at 20% 50%, rgba(255, 74, 144, 0.15) 0%, transparent 50%),
        radial-gradient(ellipse at 80% 50%, rgba(235, 178, 255, 0.1) 0%, transparent 50%);
    z-index: 2;
    pointer-events: none;
}

/* Slideshow Overlay - Additional darkening */
.hero-slideshow-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        135deg,
        rgba(21, 16, 36, 0.3) 0%,
        transparent 50%,
        rgba(21, 16, 36, 0.4) 100%
    );
    z-index: 3;
    pointer-events: none;
}

/* Hero Background (Legacy) */
.hero__background {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.hero__image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: brightness(0.75);
}

.hero__gradient-left {
    position: absolute;
    inset: 0;
    background: linear-gradient(to right, var(--color-surface), rgba(21, 16, 36, 0.6), transparent);
    z-index: 1;
}

.hero__gradient-bottom {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, var(--color-surface), transparent);
    z-index: 1;
}

/* Hero Content */
.hero__content {
    position: relative;
    z-index: 10;
    max-width: 56rem;
    animation: heroFadeIn 0.8s ease-out;
}

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

.hero__title {
    font-family: var(--font-headline);
    font-size: clamp(2.5rem, 8vw, 6.5rem);
    font-weight: 800;
    line-height: 0.9;
    letter-spacing: -0.05em;
    margin-bottom: 2rem;
}

.hero__title-highlight {
    color: var(--color-primary);
    text-shadow: 0 0 15px rgba(255, 74, 144, 0.6);
}

.hero__search-wrapper {
    margin-top: 3rem;
    max-width: 42rem;
    margin-left: auto;
    margin-right: auto;
    position: relative;
}

.hero__search-glow {
    position: absolute;
    inset: -4px;
    background: linear-gradient(to right, var(--color-primary), var(--color-secondary));
    border-radius: 9999px;
    filter: blur(8px);
    opacity: 0.25;
    transition: opacity 0.5s ease;
    pointer-events: none;
}

.hero__search-wrapper:focus-within .hero__search-glow {
    opacity: 0.75;
}

.hero__search-container {
    position: relative;
    display: flex;
    align-items: center;
    background-color: rgba(232, 222, 251, 0.08);
    border-radius: 9999px;
    padding: 1rem 1.5rem;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    border: 1px solid rgba(255, 74, 144, 0.1);
}

@media (min-width: 768px) {
    .hero__search-container {
        padding: 1.25rem 2rem;
    }
}

.hero__search-icon {
    width: 1.5rem;
    height: 1.5rem;
    margin-right: 1rem;
    color: var(--color-primary);
    flex-shrink: 0;
}

.hero__search-input {
    background: transparent;
    border: none;
    width: 100%;
    font-size: 1.125rem;
    color: var(--color-on-surface);
    outline: none;
}

.hero__search-input::placeholder {
    color: rgba(242, 232, 255, 0.8);
}

.hero__search-button {
    background: linear-gradient(to right, var(--color-primary), var(--color-primary));
    color: var(--color-on-surface);
    font-weight: 700;
    padding: 0.75rem 2.5rem;
    border-radius: 9999px;
    margin-left: 1rem;
    white-space: nowrap;
    transition: transform 0.2s ease;
    box-shadow: 0 0 15px rgba(255, 74, 144, 0.4);
}

.hero__search-button:hover {
    transform: scale(1.05);
}

.hero__search-button:active {
    transform: scale(0.95);
}

@media (max-width: 640px) {
    .hero__search-container {
        flex-direction: column;
        gap: 1rem;
    }

    .hero__search-button {
        margin-left: 0;
        width: 100%;
    }
}

.hero__subtitle {
    margin-top: 3rem;
    color: rgba(242, 232, 255, 0.9);
    font-size: 1.125rem;
    max-width: 42rem;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.6;
    font-weight: 300;
}

@media (min-width: 768px) {
    .hero__subtitle {
        font-size: 1.25rem;
    }
}

/* Accessibility: Reduced Motion */
@media (prefers-reduced-motion: reduce) {
    .hero-slide {
        transition: none;
    }
    
    .hero__content {
        animation: none;
    }
}

/* Mobile Adjustments */
@media (max-width: 768px) {
    .hero {
        min-height: 100vh;
        padding: 6rem 1rem;
    }
    
    .hero-slide::before {
        background: linear-gradient(
            180deg,
            rgba(21, 16, 36, 0.9) 0%,
            rgba(21, 16, 36, 0.7) 30%,
            rgba(21, 16, 36, 0.6) 50%,
            rgba(21, 16, 36, 0.7) 70%,
            rgba(21, 16, 36, 0.9) 100%
        );
    }
}