/* Game List Page Specific Styles */

/* 页面头部样式 */
.page-header {
    background: linear-gradient(135deg, var(--bg-darker), var(--card-bg));
    border-bottom: 1px solid var(--border-color);
}

.page-title {
    font-size: 3rem;
    font-weight: bold;
    background: linear-gradient(45deg, var(--primary-color), var(--secondary-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 0.5rem;
}

.page-subtitle {
    color: var(--text-secondary);
    font-size: 1.2rem;
}

/* 排序选项 */
.sort-options {
    max-width: 250px;
}

.form-select {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    color: var(--text-primary);
    border-radius: 8px;
}

.form-select:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(255, 71, 87, 0.25);
}

/* 分类筛选器 */
.category-filters {
    overflow-x: auto;
    white-space: nowrap;
    padding-bottom: 10px;
}

.filter-buttons {
    display: inline-flex;
    gap: 10px;
}

.filter-btn {
    border-radius: 20px;
    padding: 0.5rem 1.5rem;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.filter-btn.active,
.filter-btn:hover {
    background: linear-gradient(45deg, var(--primary-color), var(--secondary-color));
    border-color: transparent;
    transform: translateY(-2px);
}

/* 游戏统计 */
.game-stats {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.stat-text {
    padding: 0.5rem 1rem;
    background: var(--card-bg);
    border-radius: 8px;
    border: 1px solid var(--border-color);
}

/* 游戏网格布局优化 */
.game-grid-section .row {
    justify-content: center;
}

.game-grid-section .col-lg-4 {
    display: flex;
}

.game-card {
    display: flex;
    flex-direction: column;
    width: 100%;
}

/* 加载更多按钮 */
#loadMoreBtn {
    border-radius: 25px;
    padding: 0.8rem 2rem;
    font-weight: bold;
    transition: all 0.3s ease;
}

#loadMoreBtn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(255, 255, 255, 0.1);
}

#loadMoreBtn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

/* 无结果提示 */
.no-results {
    background: var(--card-bg);
    border-radius: 15px;
    border: 1px solid var(--border-color);
}

.no-results-icon {
    opacity: 0.7;
}

/* 搜索框样式 */
.input-group {
    max-width: 300px;
}

.input-group .form-control {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    color: var(--text-primary);
    border-radius: 8px 0 0 8px;
}

.input-group .form-control:focus {
    background: var(--card-bg);
    border-color: var(--primary-color);
    color: var(--text-primary);
    box-shadow: 0 0 0 0.2rem rgba(255, 71, 87, 0.25);
}

.input-group .btn {
    border-radius: 0 8px 8px 0;
    border: 1px solid var(--border-color);
    border-left: none;
}

/* 响应式设计优化 */
@media (max-width: 768px) {
    .page-title {
        font-size: 2rem;
    }
    
    .page-subtitle {
        font-size: 1rem;
    }
    
    .sort-options {
        max-width: 100%;
        margin-top: 1rem;
    }
    
    .filter-buttons {
        gap: 5px;
    }
    
    .filter-btn {
        padding: 0.4rem 1rem;
        font-size: 0.9rem;
    }
    
    .input-group {
        max-width: 100%;
        margin-top: 1rem;
    }
    
    .game-card {
        margin-bottom: 2rem;
    }
}

@media (max-width: 576px) {
    .page-title {
        font-size: 1.8rem;
    }
    
    .filter-btn {
        padding: 0.3rem 0.8rem;
        font-size: 0.8rem;
    }
    
    .game-stats {
        font-size: 0.8rem;
    }
}

/* 滚动条样式优化 */
.category-filters::-webkit-scrollbar {
    height: 6px;
}

.category-filters::-webkit-scrollbar-track {
    background: var(--bg-darker);
    border-radius: 3px;
}

.category-filters::-webkit-scrollbar-thumb {
    background: var(--primary-color);
    border-radius: 3px;
}

.category-filters::-webkit-scrollbar-thumb:hover {
    background: var(--secondary-color);
}

/* 加载动画 */
.loading-games {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 200px;
    flex-direction: column;
}

.loading-spinner {
    width: 50px;
    height: 50px;
    border: 4px solid var(--border-color);
    border-left: 4px solid var(--primary-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-bottom: 1rem;
}

.loading-text {
    color: var(--text-secondary);
    font-size: 1.1rem;
}

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

/* 游戏卡片悬停效果增强 */
.game-card:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.4);
}

/* 网格布局动画 */
.game-grid-section .col-lg-4 {
    animation: fadeInUp 0.6s ease-out;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* 分页加载动画 */
.loading-more {
    position: relative;
}

.loading-more::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 15px;
}

/* 空状态样式 */
.empty-state {
    text-align: center;
    padding: 4rem 2rem;
    color: var(--text-secondary);
}

.empty-state-icon {
    font-size: 4rem;
    margin-bottom: 1rem;
    opacity: 0.5;
}

.empty-state h3 {
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.empty-state p {
    margin-bottom: 2rem;
}