/* 메인 페이지 스타일 */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    color: #333;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

/* 헤더 */
.main-header {
    text-align: center;
    padding: 60px 20px;
    color: white;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

.main-header h1 {
    font-size: 3.5em;
    margin-bottom: 15px;
    animation: fadeInDown 1s;
}

.subtitle {
    font-size: 1.3em;
    opacity: 0.9;
    animation: fadeInUp 1s;
}

/* 카테고리 */
.game-categories {
    padding: 20px 0;
}

.category {
    background: white;
    border-radius: 20px;
    padding: 40px;
    margin-bottom: 40px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
    animation: fadeIn 1s;
}

.category-title {
    font-size: 2.2em;
    color: #667eea;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 15px;
}

.category-number {
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    padding: 10px 20px;
    border-radius: 50px;
    font-size: 0.7em;
    font-weight: bold;
}

.category-description {
    color: #666;
    font-size: 1.1em;
    margin-bottom: 30px;
}

/* 게임 그리드 */
.game-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
}

/* 게임 카드 */
.game-card {
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    border-radius: 15px;
    padding: 30px;
    text-decoration: none;
    color: #333;
    transition: all 0.3s;
    position: relative;
    overflow: hidden;
    display: block;
}

.game-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    opacity: 0;
    transition: opacity 0.3s;
    z-index: 0;
}

.game-card:hover::before {
    opacity: 0.1;
}

.game-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 35px rgba(0,0,0,0.3);
}

.game-card > * {
    position: relative;
    z-index: 1;
}

.game-icon {
    font-size: 4em;
    text-align: center;
    margin-bottom: 15px;
    animation: bounce 2s infinite;
}

.game-card h3 {
    font-size: 1.4em;
    margin-bottom: 12px;
    color: #667eea;
}

.game-card p {
    color: #666;
    line-height: 1.6;
    margin-bottom: 15px;
}

.game-badge {
    display: inline-block;
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 0.9em;
    font-weight: bold;
}

/* 준비중 카드 */
.game-card.coming-soon {
    opacity: 0.6;
    cursor: not-allowed;
}

.game-card.coming-soon:hover {
    transform: none;
    box-shadow: none;
}

.game-card.coming-soon::before {
    display: none;
}

.game-card.coming-soon .game-badge {
    background: #999;
}

/* 소개 섹션 */
.about-section {
    background: white;
    border-radius: 20px;
    padding: 40px;
    margin-bottom: 40px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
}

.about-section h2 {
    font-size: 2em;
    color: #667eea;
    margin-bottom: 20px;
}

.about-content {
    color: #666;
    line-height: 1.8;
}

.about-content p {
    font-size: 1.1em;
    margin-bottom: 25px;
}

.features {
    list-style: none;
    padding: 0;
}

.features li {
    padding: 12px 0;
    font-size: 1.1em;
    border-bottom: 1px solid #eee;
}

.features li:last-child {
    border-bottom: none;
}

/* 애니메이션 */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes bounce {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-10px);
    }
}

/* 반응형 디자인 */
@media (max-width: 768px) {
    .main-header h1 {
        font-size: 2.5em;
    }

    .subtitle {
        font-size: 1.1em;
    }

    .category {
        padding: 25px;
    }

    .category-title {
        font-size: 1.8em;
        flex-direction: column;
        align-items: flex-start;
    }

    .game-grid {
        grid-template-columns: 1fr;
    }

    .game-card {
        padding: 25px;
    }

    .game-icon {
        font-size: 3em;
    }

    .about-section {
        padding: 25px;
    }
}

@media (max-width: 480px) {
    .main-header {
        padding: 40px 15px;
    }

    .main-header h1 {
        font-size: 2em;
    }

    .category-title {
        font-size: 1.5em;
    }

    .game-card h3 {
        font-size: 1.2em;
    }
}
