/* Hero Block Styles */
.block-hero {
    padding: 80px 20px;
    text-align: center;
    position: relative;
    overflow: hidden;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.block-hero.hero-fullscreen {
    padding: 0;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    z-index: 9999;
}

/* 전체화면 모드에서 헤더가 표시될 때 absolute 포지션 (히어로 위에 겹침) */
.hero-fullscreen-with-header .site-header {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    z-index: 10000;
}

/* 전체화면 spacer */
.hero-fullscreen-spacer {
    height: 100vh;
    width: 100%;
}

/* 미디어 컨테이너 */
.hero-media-container {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 0;
}

.hero-media-item {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 1s ease-in-out;
    pointer-events: none;
}

.hero-media-item.active {
    opacity: 1;
    pointer-events: none;
}

/* 비디오 스타일 */
.hero-video {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
    border: none;
    object-fit: cover;
}

/* 비디오 placeholder (썸네일) */
.hero-video-placeholder {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    z-index: 0;
}

/* 전체화면 모드일 때 반응형 비율 유지하면서 꽉 채우기 */
.hero-fullscreen .hero-video {
    /* 16:9 비율 유지하면서 화면을 꽉 채우도록 */
    width: 100vw;
    height: 56.25vw; /* 16:9 비율 (9/16 * 100) */
    min-height: 100vh;
    min-width: 177.78vh; /* 16:9 비율 (16/9 * 100) */
}

/* 이미지 스타일 */
.hero-image {
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

/* 콘텐츠 */
.hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
    margin: 0 auto;
    padding: 0 20px;
}

.hero-title {
    font-size: 3rem;
    font-weight: 700;
    color: white;
    margin-bottom: 1rem;
    text-shadow:
        0 2px 4px rgba(0, 0, 0, 0.8),
        0 4px 12px rgba(0, 0, 0, 0.6),
        0 8px 24px rgba(0, 0, 0, 0.4);
    animation: fadeInUp 1s ease-out;
}

.hero-subtitle {
    font-size: 1.25rem;
    color: rgba(255, 255, 255, 0.95);
    margin-bottom: 2rem;
    text-shadow:
        0 2px 4px rgba(0, 0, 0, 0.8),
        0 4px 8px rgba(0, 0, 0, 0.5);
    animation: fadeInUp 1s ease-out 0.2s both;
}

.hero-button {
    display: inline-block;
    padding: 14px 36px;
    background: white;
    color: #667eea;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    animation: fadeInUp 1s ease-out 0.4s both;
}

.hero-button:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
    background: var(--button-hover-bg);
}

/* 스크롤 다운 버튼 */
.hero-scroll-down {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 4;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    opacity: 0.8;
    transition: opacity 0.3s ease;
}

.hero-scroll-down:hover {
    opacity: 1;
}

.mouse-wheel {
    width: 30px;
    height: 50px;
    border: 3px solid rgba(255, 255, 255, 0.8);
    border-radius: 15px;
    position: relative;
    display: flex;
    justify-content: center;
    padding-top: 10px;
    backdrop-filter: blur(5px);
    background: rgba(0, 0, 0, 0.1);
}

.wheel-dot {
    width: 6px;
    height: 6px;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 50%;
    animation: wheelScroll 2s infinite;
}

@keyframes wheelScroll {
    0% {
        opacity: 1;
        transform: translateY(0);
    }
    50% {
        opacity: 0.3;
        transform: translateY(15px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

/* 프로그레스바 */
.hero-progress-bar {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: rgba(255, 255, 255, 0.2);
    z-index: 3;
    overflow: hidden;
}

.hero-progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #667eea 0%, #764ba2 100%);
    width: 0%;
    transition: width 0.1s linear;
}

/* 미디어 컨트롤 */
.hero-media-controls {
    position: absolute;
    bottom: 45px;
    left: 7%;
    transform: translateX(-50%);
    z-index: 3;
    display: flex;
    align-items: center;
    gap: 20px;
}

.hero-media-prev,
.hero-media-next {
    background: rgba(255, 255, 255, 0.3);
    border: 2px solid rgba(255, 255, 255, 0.5);
    color: white;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    font-size: 24px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
    backdrop-filter: blur(5px);
}

.hero-media-prev:hover,
.hero-media-next:hover {
    background: var(--button-hover-bg);
    transform: scale(1.1);
}

.hero-media-dots {
    display: flex;
    gap: 10px;
}

.hero-media-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.4);
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px solid rgba(255, 255, 255, 0.6);
}

.hero-media-dot:hover {
    background: var(--button-hover-bg);
    transform: scale(1.2);
}

.hero-media-dot.active {
    background: white;
    transform: scale(1.3);
}

/* 애니메이션 */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* 접근성 */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border-width: 0;
}

/* 반응형 */
@media (max-width: 768px) {
    .hero-title {
        font-size: 2rem;
    }
    .hero-subtitle {
        font-size: 1rem;
    }
    .hero-scroll-down {
        bottom: 20px;
    }
    .mouse-wheel {
        width: 26px;
        height: 44px;
        border-width: 2px;
    }
    .wheel-dot {
        width: 5px;
        height: 5px;
    }
    .hero-media-controls {
        bottom: 80px;
    }
    .hero-media-prev,
    .hero-media-next {
        width: 35px;
        height: 35px;
        font-size: 20px;
    }
    .hero-media-dot {
        width: 10px;
        height: 10px;
    }
}
