/* Landing Page 전용 스타일 */

/* 랜딩 페이지에서 로고와 메뉴 숨기기 */
body:has(.landing_content) .logo,
body:has(.landing_content) .menu,
body:has(.landing_content) .hamburger,
body:has(.landing_content) .toggler {
    display: none !important;
}

.landing_content {
    position: relative; /* Override absolute from style.css */
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 60vh;
    padding: 20px 0;
    width: 100%;
    margin-bottom: 0;
}

/* 캐러셀 컨테이너 */
.carousel_container {
    width: 100vw;
    overflow: hidden;
    position: relative;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    padding: 20px 0;
}

/* 캐러셀 트랙 */
.carousel_track {
    display: flex;
    gap: 1.5em;
    width: max-content; /* Let content determine width */
    padding: 0 1.5em;
    will-change: transform; /* GPU 가속 힌트 */
    backface-visibility: hidden; /* 성능 최적화 */
    animation: carousel_scroll 20s linear infinite;
}

/* 캐러셀 아이템 */
.carousel_item {
    flex: 0 0 360px;
    height: 480px;
    border-radius: var(--radius-medium);
    overflow: hidden;
    position: relative;
    background-color: var(--gray);
    transition: transform 0.3s ease;
}

/* 색상 배경 (이미지가 없을 때 - color set by JS from window.colorList) */

.carousel_item:hover {
    transform: scale(1.05);
}

.carousel_item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 1; /* Default visible - don't rely on JS onload */
    transition: opacity 0.3s ease, transform 0.3s ease;
    will-change: transform; /* GPU 가속 힌트 */
    backface-visibility: hidden; /* 성능 최적화 */
}

.carousel_item img.image-loaded {
    opacity: 1;
}

.carousel_item img.hidden {
    display: none;
    opacity: 0;
}

.carousel_item:hover img {
    transform: scale(1.1);
}

/* 캐러셀 애니메이션 - GPU 가속 및 성능 최적화 */
@keyframes carousel_scroll {
    0% {
        transform: translate3d(0, 0, 0);
    }
    100% {
        transform: translate3d(-50%, 0, 0);
    }
}

/* 호버시 애니메이션 일시정지 제거 - 계속 동작 */

/* Sign In 섹션 */
.sign_in_section {
    text-align: center;
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
}

.sign_in_button {
    padding: 15px 40px;
    font-size: 1.3em;
    font-family: 'Sequel85', sans-serif;
    color: white;
    background: linear-gradient(45deg, #667eea 0%, #764ba2 100%);
    border: none;
    border-radius: var(--radius-large);
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.sign_in_button:hover {
    background: linear-gradient(45deg, #764ba2 0%, #667eea 100%);
}

/* 반응형 디자인 */
@media screen and (max-width: 1200px) {
    .carousel_item {
        flex: 0 0 300px;
        height: 400px;
    }
}

@media screen and (max-width: 960px) {
    .carousel_item {
        flex: 0 0 240px;
        height: 320px;
    }
}

@media screen and (max-width: 620px) {
    body:has(.landing_content) {
        display: flex;
        flex-direction: column;
        justify-content: center;
        min-height: 100dvh;
        gap: 20px;
    }

    .landing_content {
        min-height: auto;
    }

    .carousel_item {
        flex: 0 0 292px;
        height: 389px;
    }

    .carousel_container {
        padding: 40px 0;
    }

    .carousel_track {
        padding: 0 15px;
    }

    .sign_in_button {
        padding: 12px 30px;
        font-size: 1.1em;
    }
}

@media screen and (max-width: 400px) {
    .landing_content {
        padding: 0;
    }
    .carousel_item {
        flex: 0 0 259px;
        height: 346px;
        border-radius: var(--radius-small-medium);
    }

    .carousel_container {
        padding: 0;
    }
    
    .carousel_track {
        gap: 1em;
        padding: 0 10px;
    }
}
