/**
 * GameDB - Games List Page (minimal - only unique styles)
 * 
 * Base game-card, glass, etc. are already in homepage.css
 */

/* Container */
.games-list-container {
    margin: 0 auto;
    padding: 40px 40px 80px;
}

/* Page Header - extended from homepage */
.page-header {
    border-radius: 24px;
    padding: 40px 50px;
    margin-bottom: 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.page-header h1 {
    font-size: 42px;
    font-weight: 700;
    margin-bottom: 8px;
    background: linear-gradient(135deg, #6366f1 0%, #ec4899 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.page-header p {
    font-size: 16px;
    color: #64748b;
}

.results-count {
    text-align: center;
}

.count-number {
    display: block;
    font-size: 36px;
    font-weight: 700;
    color: #6366f1;
    line-height: 1;
    margin-bottom: 4px;
}

.count-label {
    font-size: 13px;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Filters Bar */
.filters-bar {
    border-radius: 16px;
    padding: 20px 30px;
    margin-bottom: 30px;
    display: flex;
    gap: 20px;
    align-items: center;
    flex-wrap: wrap;
}

.filter-group {
    display: flex;
    align-items: center;
    gap: 10px;
}

.filter-group label {
    font-size: 14px;
    font-weight: 500;
    color: #475569;
}

.filter-select {
    padding: 10px 16px;
    border-radius: 10px;
    border: 1px solid rgba(99, 102, 241, 0.2);
    background: rgba(255, 255, 255, 0.8);
    font-size: 14px;
    font-weight: 500;
    color: #1e293b;
    cursor: pointer;
    outline: none;
    min-width: 160px;
    transition: all 0.2s ease;
}

.filter-select:hover {
    border-color: #6366f1;
    background: white;
}

.reset-filters {
    padding: 10px 20px;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.6);
    border: 1px solid rgba(99, 102, 241, 0.2);
    font-size: 14px;
    font-weight: 500;
    color: #475569;
    cursor: pointer;
    transition: all 0.2s ease;
    margin-left: auto;
}

.reset-filters:hover {
    background: white;
    border-color: #6366f1;
    color: #6366f1;
}

/* Content Layout - sidebar + main */
.content-layout {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 30px;
}

/* Sidebar Filters */
.sidebar-filters {
    border-radius: 20px;
    padding: 30px;
    height: fit-content;
    position: sticky;
    top: 100px;
}

.sidebar-filters h3 {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 24px;
    color: #1e293b;
}

.filter-section {
    margin-bottom: 28px;
    padding-bottom: 28px;
    border-bottom: 1px solid rgba(203, 213, 225, 0.3);
}

.filter-section:last-of-type {
    border-bottom: none;
}

.filter-section h4 {
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 14px;
    color: #1e293b;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.checkbox-group {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.apply-filters-btn {
    width: 100%;
    padding: 14px;
    border-radius: 12px;
    background: linear-gradient(135deg, #6366f1 0%, #ec4899 100%);
    border: none;
    color: white;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 20px;
}

.apply-filters-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(99, 102, 241, 0.3);
}

/* View Toggle */
.view-toggle {
    display: flex;
    gap: 10px;
    margin-bottom: 24px;
}

.view-btn {
    padding: 10px 20px;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.6);
    border: 1px solid rgba(99, 102, 241, 0.2);
    font-size: 14px;
    font-weight: 500;
    color: #475569;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    gap: 8px;
}

.view-btn:hover {
    background: white;
    border-color: #6366f1;
    color: #6366f1;
}

.view-btn.active {
    background: linear-gradient(135deg, #6366f1 0%, #ec4899 100%);
    border-color: transparent;
    color: white;
}

/* Game badge in card */
.game-badge {
    position: absolute;
    top: 12px;
    right: 12px;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.game-badge.hot {
    background: rgba(239, 68, 68, 0.95);
    color: white;
}

.game-badge.new {
    background: rgba(16, 185, 129, 0.95);
    color: white;
}

/* Game info section in card */
.game-info {
    padding: 16px 20px;
}

.game-info h3 {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 10px;
    color: #1e293b;
}

.downloads {
    color: #64748b;
    font-weight: 500;
}

/* Pagination */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.page-btn {
    min-width: 44px;
    height: 44px;
    padding: 0 16px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.6);
    border: 1px solid rgba(99, 102, 241, 0.2);
    font-size: 14px;
    font-weight: 500;
    color: #475569;
    cursor: pointer;
    transition: all 0.2s ease;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.page-btn:hover:not(:disabled) {
    background: white;
    border-color: #6366f1;
    color: #6366f1;
}

.page-btn.active {
    background: linear-gradient(135deg, #6366f1 0%, #ec4899 100%);
    border-color: transparent;
    color: white;
}

.page-btn:disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

.page-dots {
    padding: 0 8px;
    color: #94a3b8;
    font-weight: 600;
}

/* ==========================================
   LIST VIEW - horizontal cards
   ========================================== */
.games-grid.list-view {
    grid-template-columns: 1fr;
    gap: 16px;
}

.games-grid.list-view .game-card {
    display: flex;
    flex-direction: row;
    border-radius: 16px;
}

.games-grid.list-view .game-image {
    width: 200px;
    min-width: 200px;
    aspect-ratio: 1;
    border-radius: 16px 0 0 16px;
}

.games-grid.list-view .game-image img {
    border-radius: 16px 0 0 16px;
}

.games-grid.list-view .game-badge {
    top: 10px;
    right: auto;
    left: 10px;
}

.games-grid.list-view .game-info {
    flex: 1;
    padding: 24px 30px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.games-grid.list-view .game-info h3 {
    font-size: 20px;
    margin-bottom: 12px;
}

.games-grid.list-view .game-tags {
    margin-bottom: 16px;
}

.games-grid.list-view .game-tag {
    padding: 6px 14px;
    font-size: 12px;
}

.games-grid.list-view .game-meta {
    font-size: 14px;
    gap: 20px;
    justify-content: flex-start;
}

.games-grid.list-view .game-description {
    display: block;
    font-size: 14px;
    color: #64748b;
    line-height: 1.6;
    margin-bottom: 16px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Grid view - default, hide description */
.games-grid:not(.list-view) .game-description {
    display: none;
}

/* Responsive */
@media (max-width: 1024px) {
    .content-layout {
        grid-template-columns: 1fr;
    }

    .sidebar-filters {
        position: static;
    }
}

@media (max-width: 768px) {
    .games-list-container {
        padding: 20px 20px 40px;
    }

    .page-header {
        flex-direction: column;
        text-align: center;
        padding: 30px 24px;
        gap: 20px;
    }

    .page-header h1 {
        font-size: 32px;
    }

    .filters-bar {
        flex-direction: column;
        align-items: stretch;
    }

    .filter-group {
        flex-direction: column;
        align-items: stretch;
    }

    .filter-select {
        width: 100%;
    }

    .reset-filters {
        margin-left: 0;
    }
}