body, html {
    height: 100%;
    background: linear-gradient(135deg, #1e1e2e 0%, #313244 100%);
    color: white;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    margin: 0;
    overflow-x: hidden;
}

body {
    min-height: 100vh;
    padding: 0;
    box-sizing: border-box;
}

/* 컨테이너 스타일 제거 - 게임 그리드에서 직접 처리 */

.header {
    text-align: center;
    margin-bottom: 20px;
}

.header h1 {
    font-size: 3rem;
    background: linear-gradient(45deg, #74c0fc, #91a7ff, #9775fa);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin: 10px 0;
    text-shadow: 0 0 30px rgba(116, 192, 252, 0.3);
}

.logo {
    width: 120px;
    height: 120px;
    filter: drop-shadow(0 0 20px rgba(116, 192, 252, 0.5));
    transition: transform 0.3s ease;
}

.logo:hover {
    transform: scale(1.1) rotate(5deg);
}

.main-content {
    display: flex;
    gap: 40px;
    width: 100%;
    flex-wrap: wrap;
    justify-content: center;
}

.game-list-section {
    flex: 1;
    min-width: 300px;
    max-width: 500px;
}

.favorites-section {
    flex: 1;
    min-width: 300px;
    max-width: 400px;
}

.section-title {
    font-size: 1.4rem;
    color: #74c0fc;
    margin-bottom: 15px;
    text-align: center;
    border-bottom: 2px solid #74c0fc;
    padding-bottom: 8px;
}

.game-list {
    background: rgba(49, 50, 68, 0.8);
    border-radius: 15px;
    padding: 20px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(116, 192, 252, 0.2);
    max-height: 400px;
    overflow-y: auto;
}

.game-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 15px;
    margin: 8px 0;
    background: rgba(30, 30, 46, 0.6);
    border-radius: 10px;
    border: 1px solid rgba(116, 192, 252, 0.1);
    cursor: pointer;
    transition: all 0.3s ease;
}

.game-item:hover {
    background: rgba(116, 192, 252, 0.15);
    border-color: #74c0fc;
    transform: translateX(5px);
}

.game-info {
    flex: 1;
}

.game-name {
    font-weight: 600;
    color: #cdd6f4;
    margin-bottom: 4px;
}

.game-core {
    font-size: 0.85rem;
    color: #74c0fc;
    background: rgba(116, 192, 252, 0.1);
    padding: 2px 8px;
    border-radius: 12px;
    display: inline-block;
}

.favorites-list {
    background: rgba(49, 50, 68, 0.8);
    border-radius: 15px;
    padding: 20px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(116, 192, 252, 0.2);
    max-height: 400px;
    overflow-y: auto;
}

.no-favorites {
    text-align: center;
    color: #9399b2;
    font-style: italic;
    padding: 20px;
}

.favorite-star {
    color: #9399b2;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 1.2rem;
    margin-left: 10px;
}

.favorite-star:hover {
    color: #f9e2af;
    transform: scale(1.2);
}

.favorite-star.active {
    color: #f9e2af;
}

.game-description {
    font-size: 0.8rem;
    color: #9399b2;
    margin-top: 4px;
    font-style: italic;
}

#input {
    display: none;
}

#display {
    width: 100vw;
    height: 100vh;
    position: fixed;
    top: 0;
    left: 0;
    background: black;
    z-index: 1000;
}

.loading {
    display: none;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 1001;
    text-align: center;
}

.loading.show {
    display: block;
}

.spinner {
    width: 50px;
    height: 50px;
    border: 4px solid rgba(116, 192, 252, 0.3);
    border-top: 4px solid #74c0fc;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 15px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.no-games {
    text-align: center;
    color: #9399b2;
    font-style: italic;
    padding: 20px;
}

.refresh-btn {
    background: linear-gradient(45deg, #74c0fc, #91a7ff);
    border: none;
    color: white;
    padding: 8px 16px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 0.9rem;
    margin-top: 10px;
    transition: transform 0.2s ease;
}

.refresh-btn:hover {
    transform: scale(1.05);
}

/* 카테고리 헤더 스타일 */
.category-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 30px 0 15px 0;
    padding: 15px 20px;
    background: linear-gradient(135deg, #74c0fc20, #fab38720);
    border-left: 4px solid #74c0fc;
    border-radius: 10px;
    backdrop-filter: blur(10px);
}

.category-header h3 {
    margin: 0;
    color: #74c0fc;
    font-size: 1.3rem;
    font-weight: 600;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.category-header .game-count {
    background: rgba(116, 192, 252, 0.2);
    color: #74c0fc;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 500;
    border: 1px solid rgba(116, 192, 252, 0.3);
}

@media (max-width: 768px) {
    .main-content {
        flex-direction: column;
        gap: 20px;
    }
    
    .header h1 {
        font-size: 2rem;
    }
    
    .upload-box {
        padding: 30px 20px;
    }
    
    .category-header h3 {
        font-size: 1.1rem;
    }
    
    .category-header .game-count {
        font-size: 0.8rem;
        padding: 4px 10px;
    }
} 