/**
 * Hero Component Styles
 * 숨카(SUMCAR) 프로젝트
 */

/* ========================================
   Hero Wrapper
   ======================================== */
/* Main page only - borders (removed for cleaner video background) */

/* ========================================
   Hero Container
   ======================================== */
.hero {
    position: relative;
    width: 100%;
    min-height: 600px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #0E0E0E 0%, #1a1a1a 100%);
    overflow: hidden;
}

/* 100vh 히어로를 위한 스타일 */
.hero[style*="100vh"] {
    min-height: 100vh;
}

/* ========================================
   Background Image & Overlay
   ======================================== */
.hero__background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
}

.hero__background-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

/* YouTube Video Background */
.hero__video-wrapper {
    position: absolute;
    top: -150px;
    left: 0;
    width: 100%;
    height: calc(100% + 300px);
    overflow: hidden;
    pointer-events: none;
}

/* 데스크탑용 영상 - 기본 표시 */
.hero__video-wrapper--desktop {
    display: block;
}

/* 모바일용 영상 - 기본 숨김 */
.hero__video-wrapper--mobile {
    display: none;
}

.hero__video {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 100vw;
    height: 130vh;
    transform: translate(-50%, -50%);
    pointer-events: none;
    border: none;
}

/* 16:9 비율 유지 - 가로가 긴 경우 */
@media (min-aspect-ratio: 16/9) {
    .hero__video {
        height: 56.25vw;
    }
}

/* 16:9 비율 유지 - 세로가 긴 경우 */
@media (max-aspect-ratio: 16/9) {
    .hero__video {
        width: 177.78vh;
    }
}

.hero__overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: transparent;
    display: none;
}

/* ========================================
   Container
   ======================================== */
.hero__container {
    position: relative;
    z-index: 1;
    max-width: 1200px;
    max-width: var(--container-max-width, 1200px);
    margin: 0 auto;
    padding: 80px 24px;
    padding: var(--space-80, 80px) var(--space-24, 24px);
    width: 100%;
}

/* ========================================
   Content
   ======================================== */
.hero__content {
    max-width: 600px;
}

.hero__subtitle {
    font-size: 16px;
    font-size: var(--fs-h6, 16px);
    font-weight: 600;
    font-weight: var(--fw-semibold, 600);
    color: #00B8C6;
    color: var(--c-primary, #00B8C6);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin: 0 0 16px 0;
}

.hero__title {
    font-size: 48px;
    font-size: var(--fs-h1, 48px);
    font-weight: 700;
    font-weight: var(--fw-bold, 700);
    color: #FFFFFF;
    color: var(--c-text-light, #FFFFFF);
    line-height: 1.2;
    line-height: var(--lh-tight, 1.2);
    margin: 0 0 24px 0;
}

.hero__description {
    font-size: 18px;
    font-size: var(--fs-large, 18px);
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.6;
    line-height: var(--lh-relaxed, 1.6);
    margin: 0 0 32px 0;
}

.hero__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    gap: var(--space-16, 16px);
}

/* ========================================
   Variant: Centered
   ======================================== */
.hero--centered .hero__container {
    text-align: center;
    display: flex;
    justify-content: center;
}

.hero--centered .hero__content {
    max-width: 800px;
}

.hero--centered .hero__actions {
    justify-content: center;
}

/* ========================================
   Variant: Image Right
   ======================================== */
.hero--image-right .hero__container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
    gap: var(--space-48, 48px);
    align-items: center;
}

.hero--image-right .hero__content {
    max-width: 100%;
}

.hero__image {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero__image img {
    width: 100%;
    height: auto;
    max-height: 500px;
    object-fit: contain;
    border-radius: 20px;
    border-radius: var(--radius-xl, 20px);
}

/* ========================================
   Tablet Responsive
   ======================================== */
@media (max-width: 991px) {
    .hero {
        min-height: 500px;
    }

    .hero__container {
        padding: 64px 32px;
        padding: var(--space-64, 64px) var(--space-32, 32px);
    }

    .hero__title {
        font-size: 40px;
    }

    .hero__description {
        font-size: 16px;
        font-size: var(--fs-h6, 16px);
    }

    .hero--image-right .hero__container {
        grid-template-columns: 1fr;
        gap: 32px;
        gap: var(--space-32, 32px);
    }

    .hero__image {
        order: -1;
    }
}

/* ========================================
   Mobile Responsive
   ======================================== */
@media (max-width: 767px) {
    .hero {
        min-height: 450px;
    }

    .hero__container {
        padding: 48px 16px;
        padding: var(--space-48, 48px) var(--space-16, 16px);
    }

    .hero__subtitle {
        font-size: 14px;
        font-size: var(--fs-small, 14px);
    }

    .hero__title {
        font-size: 32px;
        font-size: var(--fs-h2, 32px);
        margin-bottom: 16px;
        margin-bottom: var(--space-16, 16px);
    }

    .hero__description {
        font-size: 15px;
        font-size: var(--fs-base, 15px);
        margin-bottom: 24px;
        margin-bottom: var(--space-24, 24px);
    }

    .hero__actions {
        flex-direction: column;
        align-items: stretch;
    }

    .hero__actions .btn {
        width: 100%;
        justify-content: center;
    }

    .hero__image img {
        max-height: 300px;
    }

    /* 모바일에서 영상 전환 */
    .hero__video-wrapper--desktop {
        display: none;
    }

    .hero__video-wrapper--mobile {
        display: block;
    }

    /* 모바일 영상은 9:16 세로 비율 (Shorts) */
    .hero__video-wrapper--mobile .hero__video {
        width: auto;
        height: 100%;
        min-width: 100%;
    }
}

/* ========================================
   Animations
   ======================================== */
@keyframes heroFadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero__subtitle,
.hero__title,
.hero__description,
.hero__actions {
    animation: heroFadeInUp 600ms ease-out;
    animation-fill-mode: both;
}

.hero__subtitle {
    animation-delay: 100ms;
}

.hero__title {
    animation-delay: 200ms;
}

.hero__description {
    animation-delay: 300ms;
}

.hero__actions {
    animation-delay: 400ms;
}

.hero__image {
    animation: heroFadeInUp 800ms ease-out 500ms;
    animation-fill-mode: both;
}

/* ========================================
   Accessibility
   ======================================== */
@media (prefers-reduced-motion: reduce) {
    .hero__subtitle,
    .hero__title,
    .hero__description,
    .hero__actions,
    .hero__image {
        animation: none;
    }
}

/* ========================================
   Background Patterns
   ======================================== */
.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image:
        radial-gradient(circle at 20% 50%, rgba(0, 184, 198, 0.15) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(0, 184, 198, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 50% 20%, rgba(0, 184, 198, 0.05) 0%, transparent 40%);
    pointer-events: none;
    z-index: 0;
}

/* Full height variant */
.hero--full-height {
    min-height: 100vh;
}
