@charset "UTF-8";

/* 전체 화면 가운데 정렬 가두기 */
.main-content {
    width: 100%;
    margin: 0 auto;
    box-sizing: border-box;
}

/* 메인 내부의 모든 독립 섹션들을 기본적으로 16px 좌우 여백을 주며 정렬 */
.category-section,
.scroll-section,
.banner-section,
.review-section {
    width: 100%;
    max-width: 1024px;
    /* 피그마 맞춤형 최대 폭 */
    margin: 0 auto;
    /* 왼쪽 치우침 방지: 자동으로 좌우 여백을 똑같이 나눠 가짐 */
    padding: 50px 16px 0 16px;
    box-sizing: border-box;
    gap: 10px;
    display: flex;
    flex-direction: column;
}

/* PC 스타일 */
@media screen and (min-width: 1024px) {

    .category-section,
    .scroll-section,
    .banner-section,
    .review-section {
        padding-left: 20px;
        padding-right: 20px;
    }
}

/* 상단 히어로 배너 정렬 (Option 3: 스크롤 릴리즈 스케일 다운) */
.hero-section {
    width: 100%;
    height: auto;
    /* 자동 높이로 종횡비 원본 100% 보존 */
    overflow: hidden;
    background-color: #FFFFFF;
    /* 깨끗하고 깔끔한 흰색 바탕 */
    position: relative;
    z-index: 1;
}

.hero-container {
    width: 100%;
    max-width: 100%;
    /* 처음에는 화면 전체에 가득 찬 상태 */
    margin: 0 auto;
    box-sizing: border-box;
    padding: 0;
    /* 럭셔리한 0.8초의 부드러운 감속 줌아웃 곡선 부여 */
    transition: max-width 0.8s cubic-bezier(0.16, 1, 0.3, 1), padding 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

/* 스크롤 시 프리미엄 라운드 카드로 점진적 줌아웃 */
.hero-container.shrunk {
    max-width: 1024px;
    padding: 0 16px;
}

/* PC 해상도 패딩 보정 */
@media screen and (min-width: 1024px) {
    .hero-container.shrunk {
        padding: 0 20px;
    }
}

.hero-container a {
    display: block;
    width: 100%;
    height: auto;
    overflow: hidden;
    border-radius: 0px;
    /* 초기 상태: 각진 풀화면 형태 */
    transition: border-radius 0.8s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

/* 작아지면서 모서리가 부드럽게 깎이고 그림자가 생김 */
.hero-container.shrunk a {
    border-radius: 20px;
    box-shadow: 0 10px 35px rgba(156, 140, 242, 0.15);
    /* 시그니처 쉐도우 */
}

.hero-img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
    will-change: transform;
}

/* 호버 시 1.03배 미세 줌인 */
.hero-container.shrunk a:hover .hero-img {
    transform: scale(1.03);
}

.hero-container.shrunk a:hover {
    box-shadow: 0 15px 45px rgba(156, 140, 242, 0.25);
}

/* 아래 카테고리 섹션 레이아웃 복구 */
.category-section {
    width: 100%;
    max-width: 1024px;
    margin: 0 auto;
    padding: 50px 16px 0 16px;
    box-sizing: border-box;
    gap: 10px;
    display: flex;
    flex-direction: column;
}

@media screen and (min-width: 1024px) {
    .category-section {
        padding-left: 20px;
        padding-right: 20px;
    }
}

/* 카테고리 탭 스타일 */
.category-container {
    display: flex;
    gap: 20px;
    /* 카테고리 아이템 간의 간격 정확히 16px */
    overflow-x: auto;
    /* 모바일/태블릿에서 화면 넘치면 가로 스크롤 활성화 */
    padding: 10px 4px;

    /* 가로 스크롤바 숨기기 규칙 */
    -ms-overflow-style: none;
    /* IE and Edge */
    scrollbar-width: none;
    /* Firefox */
}

.category-container::-webkit-scrollbar {
    display: none;
    /* Chrome, Safari, Opera */
}

.category-item {
    flex: 0 0 80px;
    /* 가로 폭 70px 절대 유지 (찌그러짐 방지) */
    width: 80px;
    height: 80px;

    display: flex;
    flex-direction: column;
    align-items: center;
    /* 아이콘과 글씨 정중앙 가로 정렬 */
    justify-content: center;
    /* 상하 여백 핏 균등 배치 */
    gap: 6px;
    /* 아이콘과 글씨 사이의 미니 간격 */
    cursor: pointer;
    border-radius: var(--radius-full);
}

.category-item:hover {
    background-color: var(--color-primary-light2);
}

/* 카테고리 원형 이미지 규격 */
.category-item img {
    width: 48px;
    height: 48px;
    object-fit: contain;
}

/* 카테고리 글씨 스타일 */
.category-item p {
    font-size: 12px;
    color: var(--color-text-main);
    font-weight: var(--weight-medium);
    text-align: center;
    white-space: nowrap;
    /* 글자가 폭을 넘쳐서 줄바꿈되지 않도록 방지 */
}

/* 카드 섹션 h2 스타일 */
.section-header h2 {
    font-size: 24px;
    font-weight: var(--weight-medium);
    color: var(--color-text-main);
    width: 90%;
}

.section-header {
    width: 100%;
    display: flex;
    align-items: center;
}

.see-more-btn {
    text-decoration: none;
    white-space: nowrap;
    color: var(--color-text-main);
    font-size: 16px;
}

/* 이미지 박스 그림자 효과 */
.trend-card .card-image-wrap {
    box-shadow: 0 0 7.038px 0 rgba(0, 0, 0, 0.25);
    border-radius: 8px;
}

/* 밑으로 갈수록 어두워지는 그라데이션 레이어 구현 */
.trend-card .gradient-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(180deg, rgba(102, 102, 102, 0.00) 0%, rgba(0, 0, 0, 0.60) 100%);
    z-index: 2;
    pointer-events: none;
}

/* 사진 위에 있는 정보 텍스트 전체 상자 정렬 */
.trend-card .card-overlay-info {
    position: absolute;
    left: 0;
    bottom: 0;
    width: 100%;

    /* 내부 텍스트들을 정중앙 정렬 */
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-end;

    /* 하단 여백과 레이어 우선 순위 */
    padding-bottom: 20px;
    z-index: 3;
    color: var(--color-white);
    text-align: center;
}

/* 랭킹 숫자 스타일 */
.trend-card .trend-rank-num {
    font-size: 48px;
    font-weight: var(--weight-medium);
    line-height: 1;
    margin-bottom: 8px;
}

/* 팝업 제목 스타일 */
.trend-card .trend-card-title {
    font-size: 20px;
    font-weight: var(--weight-medium);
    /* 말줄임표 작동을 위한 안전 여백 */
    width: 90%;

    /* 너비 넘어가면 글자 잘라주기 */
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* 위치 값 스타일 */
.trend-card .trend-card-location {
    font-size: 18px;
    font-weight: var(--weight-regular);
}

.bottom-gradient-container {
    width: 100%;
    max-width: 1024px;
    /* 양옆 화면은 하얀색으로 남도록 1024px 고정 */
    margin: 0 auto;
    /* 정중앙 정렬 */
    box-sizing: border-box;

    /* 리뷰 상단(흰색) -> 아래로 갈수록 사진 배경색(#E6DAF9) */
    background: linear-gradient(180deg,
            #FFFFFF 0%,
            var(--color-primary-light2) 30%,
            #E6D9F9 60%,
            #E6D9F9 100%);

    display: flex;
    flex-direction: column;
}

.review-section {
    width: 100%;
    padding: 50px 16px 0 16px;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

@media screen and (min-width: 1024px) {
    .review-section {
        padding-left: 20px;
        padding-right: 20px;
    }
}

/* 맨 밑 배경 이미지 설정 */
.bottom-illust-wrap {
    width: 100%;
    background-color: #E6DAF9;
    margin: 40px 0 0 0;
    padding: 0;
    box-sizing: border-box;
    line-height: 0;
    font-size: 0;
}

/* 1024px 이상 해상도 화면 대응 패딩 맞춤 */
@media screen and (min-width: 1024px) {
    .bottom-illust-wrap {
        padding-left: 0px;
        padding-right: 0px;
    }
}

.bottom-illust-img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: contain;
    background-color: #E6DAF9;
}

/* 뱃지 */
.card-image-wrap {
    position: relative;
    width: 100%;
    height: 300px;
    box-shadow: 0 0 7.038px 0 rgba(0, 0, 0, 0.25);
    border-radius: 8px;
    overflow: hidden;
}

/* 인기 급상승 - 왕관 */
.crown-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    width: 40px;
    height: 40px;
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    z-index: 10;
    pointer-events: none;
}

/* 금, 은, 동 개별 파일 */
.crown-badge.rank-gold {
    background-image: url('/assets/images/badges/badge-crown-gold.png');
}

.crown-badge.rank-silver {
    background-image: url('/assets/images/badges/badge-crown-silver.png');
}

.crown-badge.rank-bronze {
    background-image: url('/assets/images/badges/badge-crown-bronze.png');
}

/* 여유로운 팝업 뱃지 */
.leisure-status-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    width: 70px;
    height: 36px;
    background-image: url('/assets/images/badges/badge-leisure.png');
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    z-index: 10;
    pointer-events: none;
}

/* 오픈 예정 뱃지 */
.status-badge.new-status {
    position: absolute;
    top: 10px;
    left: 10px;
    width: 50px;
    height: 50px;
    background-image: url('/assets/images/badges/badge-new.png');
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    z-index: 10;
    pointer-events: none;
    background-color: transparent !important;
    border: none !important;
    border-radius: 0 !important;
}

/* 키링 받기 배너 */
.banner-section {
    /* 정중앙 정렬 */
    align-items: center;
}

.event-banner-link {
    display: block;
    text-align: center;
    width: fit-content;
}

.event-img {
    height: auto;
    width: 100%;
    display: block;
    margin: 0 auto;
    object-fit: contain;
}

/* 썸네일 이미지 */
.card-thumb {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}