/* 네비게이션 고정 시 메뉴와 겹치지 않도록 여백 추가 */
.vlt-section {
    scroll-margin-top: 80px; /* 네비게이션 높이만큼 여백 확보 */
}

.vlt-section__ken-burn-background {
    background-image: url('assets/img/playdate.png');
    background-size: cover;
    background-position: center;
    transform: rotate(-20deg);
    overflow: hidden;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
}

/* 모바일 네비게이션 자동 숨김 */
@media (max-width: 768px) {
    .vlt-navbar {
        position: fixed;
        width: 100%;
        top: 0;
        background: rgba(0, 0, 0, 0.8);
        z-index: 999;
    }
    
    /* 상단 여백 줄이기 */
    .vlt-section[data-anchor="Home"] .vlt-gap-160 {
        height: 120px !important; /* 160px에서 60px로 줄임 */
    }
    
    /* 비디오 버튼 아래 여백 줄이기 */
    .vlt-section[data-anchor="Home"] .vlt-gap-100 {
        height: 200px !important; /* 100px에서 40px로 줄임 */
    }
    
    /* 수직 정렬 패딩 조정 (추가 조정이 필요한 경우) */
    .vlt-section[data-anchor="Home"] .vlt-section__vertical-align {
        padding-top: 20px;
    }
}

/* 스크린샷 슬라이더 스타일 */
.vlt-screenshots {
    width: 100%;
    margin: 30px 0;
    overflow: hidden;
}

.vlt-screenshots .swiper-wrapper {
    display: flex;
}

.vlt-screenshots .swiper-slide {
    text-align: center;
}

.vlt-screenshots img {
    max-height: 60vh;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

/* 큰 화면에서의 스타일 (가로로 모든 이미지 표시) */
@media (min-width: 769px) {
    .vlt-screenshots .swiper-wrapper {
        flex-wrap: nowrap;
        justify-content: space-around;
        transform: translate3d(0,0,0) !important;
    }

    .vlt-screenshots .swiper-slide {
        width: 30% !important; /* 3개 이미지를 균등하게 배치 */
        flex: 0 0 auto;
    }

    .vlt-screenshots img {
        max-width: 100%;
        max-height: 50vh;
    }

    .vlt-screenshots-controls,
    .vlt-screenshots .swiper-pagination {
        display: none; /* 큰 화면에서는 컨트롤 숨김 */
    }
}

/* 작은 화면에서의 스타일 (스와이프 적용) */
@media (max-width: 768px) {
    .vlt-screenshots .swiper-slide {
        width: 100%; /* 전체 너비 사용 */
    }

    .vlt-screenshots img {
        max-width: 90%;
    }
    
    /* 컨트롤 스타일 */
    .vlt-screenshots-controls {
        display: flex;
        justify-content: center;
        margin-top: 15px;
    }
    
    .vlt-screenshots-controls .vlt-swiper-button-prev,
    .vlt-screenshots-controls .vlt-swiper-button-next {
        width: 40px;
        height: 40px;
        display: flex;
        align-items: center;
        justify-content: center;
        cursor: pointer;
        color: rgba(255, 255, 255, 0.7);
        transition: color 0.3s ease;
        margin: 0 10px;
    }
    
    .vlt-screenshots-controls .vlt-swiper-button-prev:hover,
    .vlt-screenshots-controls .vlt-swiper-button-next:hover {
        color: #fff;
    }
    
    .vlt-screenshots-controls .vlt-swiper-button-prev svg,
    .vlt-screenshots-controls .vlt-swiper-button-next svg {
        width: 20px;
        height: 20px;
    }
    
    /* 페이지네이션 스타일 */
    .vlt-screenshots .swiper-pagination {
        position: relative;
        margin-top: 15px;
        text-align: center;
    }
    
    .vlt-screenshots .swiper-pagination-bullet {
        width: 10px;
        height: 10px;
        background: rgba(255, 255, 255, 0.5);
        opacity: 1;
        margin: 0 5px;
    }
    
    .vlt-screenshots .swiper-pagination-bullet-active {
        background: #fff;
    }
}

/* 게임 정보 박스 스타일 */
.vlt-game-info-box {
    margin-top: 20px;
    margin-bottom: 20px;
}

.vlt-game-info-content {
    background-color: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(5px);
    border-radius: 12px;
    padding: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.vlt-game-info-details {
    flex: 1;
}

.vlt-game-info-details p {
    margin: 8px 0;
    font-size: 16px;
    color: #fff;
}

.vlt-game-info-details strong {
    font-weight: 600;
    color: rgba(255, 255, 255, 0.9);
}

.vlt-game-info-badge {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
}

.playdate-badge {
    max-width: 200px;
    height: auto;
    transition: transform 0.3s ease;
}

.playdate-badge:hover {
    transform: scale(1.05);
}

/* 반응형 스타일 - 수정됨 */
@media (max-width: 768px) {
    .vlt-game-info-content {
        /* flex-direction 속성 제거하여 가로 배치 유지 */
        padding: 15px; /* 패딩 줄임 */
    }
    
    .vlt-game-info-details p {
        margin: 5px 0; /* 여백 줄임 */
        font-size: 14px; /* 폰트 사이즈 줄임 */
    }
    
    .vlt-game-info-badge {
        flex: 0.7; /* 텍스트보다 적은 공간 차지 */
    }
    
    .playdate-badge {
        max-width: 120px; /* 이미지 크기 줄임 */
    }
}

/* 매우 작은 화면에서 추가 조정 */
@media (max-width: 480px) {
    .vlt-game-info-badge {
        flex: 0.5;
    }
    
    .playdate-badge {
        max-width: 100px;
    }
    
    .vlt-game-info-details p {
        font-size: 13px;
    }
    
    .vlt-section[data-anchor="Home"] .vlt-gap-160 {
        height: 30px !important; /* 더 작은 화면에서는 더 작게 */
    }
    
    .vlt-section[data-anchor="Home"] .vlt-gap-100 {
        height: 20px !important; /* 더 작은 화면에서는 더 작게 */
    }
}

/* 제목 텍스트가 한 줄로 유지되도록 반응형 스타일 */
.vlt-large-heading {
    white-space: nowrap; /* 줄바꿈 방지 */
}

/* 화면 크기에 따른 폰트 크기 조절 */
@media (min-width: 1200px) {
    .vlt-large-heading {
        font-size: 62px; /* 기본 크기 유지 또는 조정 */
    }
}

@media (max-width: 1199px) {
    .vlt-large-heading {
        font-size: 54px;
    }
}

@media (max-width: 991px) {
    .vlt-large-heading {
        font-size: 46px;
    }
}

@media (max-width: 767px) {
    .vlt-large-heading {
        font-size: 38px;
    }
}

@media (max-width: 575px) {
    .vlt-large-heading {
        font-size: 32px;
        letter-spacing: -0.5px; /* 작은 화면에서는 글자 간격을 좁게 */
    }
}

@media (max-width: 374px) {
    .vlt-large-heading {
        font-size: 28px;
        letter-spacing: -1px; /* 매우 작은 화면에서 더 좁게 */
    }
}

