/* ========================================================
   TTEUM (틈) 메인 허브 스타일시트
   ======================================================== */

.hub-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 20px 80px;
    display: flex;
    flex-direction: column;
    gap: 48px;
}

/* 히어로 섹션 */
.hub-hero {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
    padding: 30px 20px;
    position: relative;
}

.hero-tag {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 14px;
    background: rgba(0, 245, 212, 0.1);
    border: 1px solid rgba(0, 245, 212, 0.4);
    border-radius: 20px;
    color: var(--neon-teal);
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.5px;
}

.hero-title {
    font-size: clamp(2.2rem, 5vw, 3.8rem);
    font-weight: 900;
    line-height: 1.15;
    letter-spacing: -1px;
    background: linear-gradient(135deg, #ffffff 40%, var(--neon-blue) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-desc {
    max-width: 580px;
    font-size: 16px;
    color: var(--text-muted);
    line-height: 1.6;
    font-weight: 500;
}

/* 섹션 타이틀 */
.section-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 14px;
}

.section-title-wrap {
    display: flex;
    align-items: center;
    gap: 10px;
}

.section-icon {
    font-size: 24px;
}

.section-title {
    font-size: 20px;
    font-weight: 800;
    letter-spacing: -0.5px;
}

.section-subtitle {
    font-size: 13px;
    color: var(--text-dim);
}

/* 게임 그리드 */
.games-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 24px;
}

/* 게임 카드 */
.game-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 24px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: all 0.28s cubic-bezier(0.16, 1, 0.3, 1);
    position: relative;
    overflow: hidden;
    min-height: 280px;
}

.game-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: transparent;
    transition: background 0.28s ease;
}

.game-card.active-game:hover {
    transform: translateY(-6px);
    border-color: var(--card-accent, var(--neon-blue));
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.5), 0 0 20px var(--card-glow, rgba(76, 201, 240, 0.25));
}

.game-card.active-game::before {
    background: var(--card-accent, var(--neon-blue));
}

.game-card.card-dodge {
    --card-accent: var(--neon-blue);
    --card-glow: rgba(76, 201, 240, 0.3);
}

.game-card.card-ladder {
    --card-accent: var(--neon-pink);
    --card-glow: rgba(247, 37, 133, 0.3);
}

.game-card.card-roulette {
    --card-accent: var(--neon-teal);
    --card-glow: rgba(0, 245, 212, 0.3);
}

.card-top {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 20px;
}

.card-icon-box {
    width: 54px;
    height: 54px;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    box-shadow: inset 0 0 12px rgba(0, 0, 0, 0.5);
}

.card-badge {
    font-size: 11px;
    font-weight: 800;
    padding: 4px 10px;
    border-radius: 6px;
    letter-spacing: 0.5px;
}

.badge-playable {
    background: rgba(0, 245, 212, 0.15);
    border: 1px solid var(--neon-teal);
    color: var(--neon-teal);
}

.badge-soon {
    background: rgba(148, 163, 184, 0.1);
    border: 1px solid #334155;
    color: #94a3b8;
}

.card-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 24px;
}

.card-title {
    font-size: 22px;
    font-weight: 800;
    color: #ffffff;
    letter-spacing: -0.5px;
}

.card-desc {
    font-size: 14px;
    color: var(--text-muted);
    line-height: 1.5;
}

.card-meta {
    display: flex;
    gap: 12px;
    margin-top: 6px;
    font-size: 12px;
    color: var(--text-dim);
}

.meta-item {
    display: flex;
    align-items: center;
    gap: 4px;
}

.card-footer {
    display: flex;
    align-items: center;
}

.btn-play-game {
    width: 100%;
    padding: 12px 20px;
    border-radius: 10px;
    background: var(--card-accent, var(--neon-blue));
    color: #080c16;
    font-size: 14px;
    font-weight: 800;
    text-decoration: none;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: all 0.2s ease;
    border: none;
    cursor: pointer;
    box-shadow: 0 4px 14px var(--card-glow, rgba(76, 201, 240, 0.3));
}

.btn-play-game:hover {
    filter: brightness(1.15);
    transform: scale(1.02);
}

.btn-soon {
    width: 100%;
    padding: 12px 20px;
    border-radius: 10px;
    background: #1e293b;
    color: #64748b;
    font-size: 14px;
    font-weight: 700;
    text-align: center;
    border: 1px solid #334155;
    cursor: not-allowed;
}

/* 플랫폼 안내 카드 */
.hub-info-banner {
    background: linear-gradient(135deg, rgba(14, 21, 38, 0.8) 0%, rgba(30, 41, 59, 0.6) 100%);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 28px 32px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

.info-banner-left {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.info-banner-title {
    font-size: 18px;
    font-weight: 800;
    color: #ffffff;
}

.info-banner-desc {
    font-size: 13.5px;
    color: var(--text-muted);
    line-height: 1.5;
}

.info-badges {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.info-pill {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 14px;
    border-radius: 20px;
    background: #0f172a;
    border: 1px solid #1e293b;
    font-size: 12px;
    color: #cbd5e1;
    font-weight: 600;
}

/* 푸터 */
.hub-footer {
    text-align: center;
    padding: 24px;
    border-top: 1px solid var(--border-color);
    color: var(--text-dim);
    font-size: 13px;
}

/* 모바일 미디어 쿼리 */
@media (max-width: 640px) {
    .hub-container {
        padding: 24px 16px 60px;
        gap: 36px;
    }

    .hub-hero {
        padding: 16px 8px;
    }

    .games-grid {
        grid-template-columns: 1fr;
    }

    .hub-info-banner {
        padding: 20px;
    }
}
