


/* 게임 컬렉션 */
.collections {
    position: relative;
    overflow: hidden;
    width: 100%;
    background: linear-gradient(180deg, #02070a 0%, #020406 100%);
}

/* 네온 배경 */
.collections::before {
    content: '';
    position: absolute;
    inset: -250px;
    z-index: 0;
    pointer-events: none;

    background:
        radial-gradient(
            circle at 0% 70%,
            rgba(0, 229, 255, 0.28),
            transparent 32%
        ),

        radial-gradient(
            circle at 100% 80%,
            rgba(0, 229, 255, 0.18),
            transparent 30%
        );
}


/* 내부 */
.collections-inner {
    position: relative;
    z-index: 1;

    padding: 120px 50px 500px;
    max-width: 1400px;
    margin: 0 auto;

    color: #fff;
}

/* 헤더 */
.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-title {
    font-size: 40px;
    letter-spacing: -1px;
    margin-bottom: 20px;

    font-weight: 350;
    text-shadow: 0 2px 12px rgba(0, 0, 0, 0.35);
    margin-bottom: 20px;
}

.section-subtitle {
    color: var(--text-muted);
    font-size: 18px;
    letter-spacing: 2px;
    text-transform: uppercase;
}

/* 탭 */
.category-tabs {
    display: flex;
    justify-content: center;
    gap: 30px;
    margin-bottom: 50px;
    flex-wrap: wrap;
}

.tab-btn {
    padding: 12px 30px;
    background: transparent;
    border: 1px solid var(--text-muted);
    color: var(--text-muted);
    cursor: pointer;

    text-transform: uppercase;
    letter-spacing: 2px;
    font-size: 12px;

    transition: all 0.3s ease;
}

.tab-btn.active,
.tab-btn:hover {
    background: var(--accent);
    border-color: var(--accent);
    color: white;
    transform: translateY(-2px);
}

/* 카드 그리드 */
.grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(270px, 270px));
    gap: 32px;

    border-top: 1px solid #252525;
    padding-top: 40px;



}

/* 카드 */
.collection-card {
    opacity: 0;
    animation: fadeInUp 0.6s ease forwards;
}

.collection-card:nth-child(1) { animation-delay: 0.1s; }
.collection-card:nth-child(2) { animation-delay: 0.2s; }
.collection-card:nth-child(3) { animation-delay: 0.3s; }
.collection-card:nth-child(4) { animation-delay: 0.4s; }
.collection-card:nth-child(5) { animation-delay: 0.5s; }
.collection-card:nth-child(6) { animation-delay: 0.6s; }
.collection-card:nth-child(7) { animation-delay: 0.7s; }
.collection-card:nth-child(8) { animation-delay: 0.8s; }

/* 썸네일 */
.collection-thumbnail {
    position: relative;
    width: 100%;
    aspect-ratio: 1 / 1;

    overflow: hidden;

    border-radius: 12px 12px 0 0;
    background: #111;

    cursor: pointer;
}

.collection-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;

    transition:
        transform 0.5s ease,
        filter 0.5s ease;
}

/* 호버 오버레이 */
.collection-thumbnail::before {
    content: '';

    position: absolute;
    inset: 0;

    background: linear-gradient(
        to top,
        rgba(0, 0, 0, 0.92) 0%,
        rgba(0, 0, 0, 0.78) 45%,
        rgba(0, 0, 0, 0.35) 75%,
        rgba(0, 0, 0, 0.08) 100%
    );

    transform: translateY(100%);
    transition: transform 0.45s ease;

    z-index: 1;
}

.card-overlay {
    position: absolute;

    left: 0;
    right: 0;
    bottom: 0;

    padding: 24px;

    text-align: left;

    z-index: 2;

    transform: translateY(30px);
    opacity: 0;

    transition: all 0.4s ease;
}

.collection-thumbnail:hover img {
    transform: scale(1.08);
}

.collection-thumbnail:hover::before {
    transform: translateY(0);
}

.collection-thumbnail:hover .card-overlay {
    transform: translateY(0);
    opacity: 1;
}

/* 텍스트 */
.card-title {
    font-size: 26px;
    font-weight: 700;
    margin-bottom: 10px;
    color: #fff;
}

.card-subtitle {
    font-size: 14px;
    color: rgba(255,255,255,0.85);
    line-height: 1.5;
}

/* 플랫폼 바 */
.platform-bar {
    height: 54px;

    background: #050505;

    border-top: 1px solid rgba(255,255,255,0.08);
    border-radius: 0 0 12px 12px;

    display: flex;
    align-items: center;
    justify-content: space-between;

    padding: 0 18px;
}

.platform-left,
.platform-right {
    display: flex;
    align-items: center;
    gap: 10px;
}

.platform-left img {
    width: 20px;
    height: 20px;

    object-fit: contain;
    display: block;

    opacity: 0.9;
}

.platform-right span {
    font-size: 13px;
    color: rgba(255,255,255,0.9);
    letter-spacing: 0.5px;
}







@media (max-width: 768px) {
    .collections-inner {
        padding: 90px 20px 180px;
    }

    .grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 16px;
    }

    .card-title {
        font-size: 18px;
    }

    .card-subtitle {
        font-size: 12px;
    }

    .platform-bar {
        height: 46px;
        padding: 0 10px;
    }

    .platform-left img {
        width: 18px;
        height: 18px;
    }

    .platform-right span {
        font-size: 11px;
    }
}






/* 등장 애니메이션 */
@keyframes fadeInUp {

    from {
        transform: translateY(40px);
        opacity: 0;
    }

    to {
        transform: translateY(0);
        opacity: 1;
    }

}