/* home.css - 홈페이지 전용 스타일 (Galaxy 디자인) */
@import url('https://fonts.googleapis.com/css2?family=Nunito:wght@600;700;800;900&display=swap');

/* ===== 색상 정의 ===== */
:root {
    --galaxy-bg: #f5f3e8;
    --galaxy-nav-bg: #f5f3e8;
    --galaxy-text: #3a3a3a;
    --galaxy-text-muted: #888;
    --galaxy-border: #e8e5d8;
}

/* ===== 네비게이션 바 ===== */
.galaxy-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 14px 32px;
    background: var(--galaxy-nav-bg);
    border-bottom: 2px solid var(--galaxy-border);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.galaxy-nav-left {
    display: flex;
    align-items: center;
}

.galaxy-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: var(--galaxy-text);
}

.galaxy-logo-icon {
    font-size: 1.8rem;
    background: #fdd835;
    width: 42px;
    height: 42px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 8px rgba(253, 216, 53, 0.3);
}

.galaxy-logo-text {
    font-family: 'Nunito', sans-serif;
    font-weight: 900;
    font-size: 1.15rem;
    letter-spacing: 0.5px;
    color: var(--galaxy-text);
}

.galaxy-nav-right {
    display: flex;
    align-items: center;
    gap: 8px;
}

.galaxy-nav-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 2px solid var(--galaxy-border);
    background: transparent;
    color: var(--galaxy-text);
    font-size: 1rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.galaxy-nav-btn:hover {
    background: rgba(0, 0, 0, 0.05);
    border-color: #ccc;
    transform: scale(1.05);
}

.galaxy-profile-btn {
    background: #fdd835;
    border-color: #fdd835;
    color: #5a4e00;
    font-size: 1.1rem;
}

.galaxy-profile-btn:hover {
    background: #ffeb3b;
    border-color: #ffeb3b;
}

/* ===== 홈 컨테이너 ===== */
.home-container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 24px 40px;
}

/* ===== 히어로 섹션 ===== */
.home-hero {
    padding: 36px 0 20px;
}

.home-section-title {
    font-family: 'Nunito', sans-serif;
    font-size: 1.8rem;
    font-weight: 900;
    color: var(--galaxy-text);
    margin: 0;
}

/* ===== 게임 그리드 ===== */
.game-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 28px;
    padding: 20px 0;
}

/* ===== Planet Card ===== */
.planet-card {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.planet-link {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    color: inherit;
    width: 100%;
}

/* 원형 썸네일 */
.planet-circle {
    width: 160px;
    height: 160px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    margin-bottom: 16px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.planet-link:hover .planet-circle {
    transform: scale(1.08);
}

.planet-emoji {
    font-size: 4rem;
    position: relative;
    z-index: 1;
    filter: drop-shadow(0 4px 12px rgba(0, 0, 0, 0.15));
}

/* ===== 카드 컬러 테마 ===== */
/* Yellow */
[data-color="yellow"] .planet-circle {
    background: linear-gradient(135deg, #fff9e6, #fff3cc);
    box-shadow: 0 0 0 6px #fdd835, 0 8px 24px rgba(253, 216, 53, 0.2);
}

[data-color="yellow"] .planet-tagline {
    color: #d4a017;
}

[data-color="yellow"] .planet-start-btn {
    background: #fef3c7;
    color: #92710a;
}

[data-color="yellow"] .planet-start-btn:hover {
    background: #fde68a;
}

/* Blue / Purple */
[data-color="blue"] .planet-circle {
    background: linear-gradient(135deg, #e8eef9, #d5ddf4);
    box-shadow: 0 0 0 6px #7c9dea, 0 8px 24px rgba(124, 157, 234, 0.2);
}

[data-color="blue"] .planet-tagline {
    color: #5b7dcc;
}

[data-color="blue"] .planet-start-btn {
    background: #dde4f6;
    color: #3a5bb0;
}

[data-color="blue"] .planet-start-btn:hover {
    background: #c5d0ef;
}

/* Purple */
[data-color="purple"] .planet-circle {
    background: linear-gradient(135deg, #f0e6ff, #e0ccff);
    box-shadow: 0 0 0 6px #9b7dd4, 0 8px 24px rgba(155, 125, 212, 0.2);
}

[data-color="purple"] .planet-tagline {
    color: #8860c6;
}

[data-color="purple"] .planet-start-btn {
    background: #e8dcf8;
    color: #6b3fa0;
}

[data-color="purple"] .planet-start-btn:hover {
    background: #d8c4f2;
}

/* Green */
[data-color="green"] .planet-circle {
    background: linear-gradient(135deg, #e6f9f0, #ccf4df);
    box-shadow: 0 0 0 6px #5cc99b, 0 8px 24px rgba(92, 201, 155, 0.2);
}

[data-color="green"] .planet-tagline {
    color: #3aad7a;
}

[data-color="green"] .planet-start-btn {
    background: #d1f5e3;
    color: #1d8a55;
}

[data-color="green"] .planet-start-btn:hover {
    background: #b3ecd2;
}

/* Cyan */
[data-color="cyan"] .planet-circle {
    background: linear-gradient(135deg, #e6fcf5, #ccf7ec);
    box-shadow: 0 0 0 6px #4dd8b4, 0 8px 24px rgba(77, 216, 180, 0.2);
}

[data-color="cyan"] .planet-tagline {
    color: #2cb594;
}

[data-color="cyan"] .planet-start-btn {
    background: #ccf5e9;
    color: #177a60;
}

[data-color="cyan"] .planet-start-btn:hover {
    background: #a8edda;
}

/* Pink */
[data-color="pink"] .planet-circle {
    background: linear-gradient(135deg, #fce4ec, #f8c1d0);
    box-shadow: 0 0 0 6px #e8859b, 0 8px 24px rgba(232, 133, 155, 0.2);
}

[data-color="pink"] .planet-tagline {
    color: #d45d7a;
}

[data-color="pink"] .planet-start-btn {
    background: #fce4ec;
    color: #b33356;
}

[data-color="pink"] .planet-start-btn:hover {
    background: #f8c1d0;
}

/* Red */
[data-color="red"] .planet-circle {
    background: linear-gradient(135deg, #fde8e8, #f8c4c4);
    box-shadow: 0 0 0 6px #e07070, 0 8px 24px rgba(224, 112, 112, 0.2);
}

[data-color="red"] .planet-tagline {
    color: #c94444;
}

[data-color="red"] .planet-start-btn {
    background: #fde0e0;
    color: #a52a2a;
}

[data-color="red"] .planet-start-btn:hover {
    background: #f8c4c4;
}

/* Orange */
[data-color="orange"] .planet-circle {
    background: linear-gradient(135deg, #fff3e0, #ffe0b2);
    box-shadow: 0 0 0 6px #f5a623, 0 8px 24px rgba(245, 166, 35, 0.2);
}

[data-color="orange"] .planet-tagline {
    color: #e08a00;
}

[data-color="orange"] .planet-start-btn {
    background: #fff0d4;
    color: #a05d00;
}

[data-color="orange"] .planet-start-btn:hover {
    background: #ffe0a8;
}

/* Coral */
[data-color="coral"] .planet-circle {
    background: linear-gradient(135deg, #fce9e4, #f5cfc5);
    box-shadow: 0 0 0 6px #d4907a, 0 8px 24px rgba(212, 144, 122, 0.2);
}

[data-color="coral"] .planet-tagline {
    color: #c07050;
}

[data-color="coral"] .planet-start-btn {
    background: #fce4dc;
    color: #8c4a30;
}

[data-color="coral"] .planet-start-btn:hover {
    background: #f5cfc0;
}

/* ===== 카드 텍스트 ===== */
.planet-name {
    font-family: 'Nunito', sans-serif;
    font-size: 1.05rem;
    font-weight: 800;
    color: var(--galaxy-text);
    margin: 0 0 4px 0;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.planet-tagline {
    font-family: 'Nunito', sans-serif;
    font-size: 0.88rem;
    font-weight: 700;
    font-style: italic;
    margin: 0 0 14px 0;
}

/* ===== START 버튼 ===== */
.planet-start-btn {
    font-family: 'Nunito', sans-serif;
    font-weight: 800;
    font-size: 0.85rem;
    letter-spacing: 1.5px;
    padding: 10px 0;
    width: 100%;
    max-width: 180px;
    border: none;
    border-radius: 22px;
    cursor: pointer;
    transition: all 0.2s ease;
    text-transform: uppercase;
}

.planet-start-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

/* ===== 푸터 ===== */
.home-footer {
    text-align: center;
    padding: 40px 20px;
    color: #aaa;
    font-size: 0.85rem;
    border-top: 1px solid var(--galaxy-border);
    margin-top: 40px;
    font-family: 'Nunito', sans-serif;
}

.home-footer a {
    color: #d4a017;
    text-decoration: none;
}

.home-footer a:hover {
    text-decoration: underline;
}

/* ===== 태블릿 반응형 ===== */
@media (max-width: 900px) {
    .game-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 20px;
    }

    .planet-circle {
        width: 130px;
        height: 130px;
    }

    .planet-emoji {
        font-size: 3.2rem;
    }
}

/* ===== 모바일 반응형 ===== */
@media (max-width: 600px) {
    .galaxy-nav {
        padding: 10px 16px;
    }

    .galaxy-logo-text {
        font-size: 0.95rem;
    }

    .galaxy-logo-icon {
        width: 36px;
        height: 36px;
        font-size: 1.4rem;
    }

    .galaxy-nav-btn {
        width: 36px;
        height: 36px;
        font-size: 0.9rem;
    }

    .home-section-title {
        font-size: 1.4rem;
    }

    .game-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 16px;
    }

    .planet-circle {
        width: 110px;
        height: 110px;
    }

    .planet-emoji {
        font-size: 2.8rem;
    }

    .planet-name {
        font-size: 0.9rem;
    }

    .planet-tagline {
        font-size: 0.78rem;
    }

    .planet-start-btn {
        font-size: 0.75rem;
        padding: 8px 0;
        max-width: 140px;
    }
}