/**
 * GameDB - Categories Page CSS
 * 
 * Styles for category detail page
 */

.page-container {
    margin: 0 auto;
    padding: 30px 20px;
}

.page-header {
    padding: 40px;
    border-radius: 24px;
    margin-bottom: 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.page-header h1 {
    font-size: 36px;
    margin: 0 0 8px;
    background: linear-gradient(135deg, #6366f1 0%, #ec4899 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.page-header p {
    margin: 0;
    color: #64748b;
}

.header-stats .stat {
    font-size: 18px;
    font-weight: 600;
    color: #6366f1;
}

.content-layout {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 30px;
}

.sidebar {
    position: sticky;
    top: 20px;
    height: fit-content;
}

.sidebar-section {
    padding: 24px;
    border-radius: 20px;
}

.sidebar-section h3 {
    margin: 0 0 16px;
    font-size: 16px;
    color: #1e293b;
}

.category-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.category-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    border-radius: 12px;
    text-decoration: none;
    color: #475569;
    transition: all 0.2s ease;
}

.category-item:hover {
    background: rgba(99, 102, 241, 0.1);
    color: #6366f1;
}

.category-item.active {
    background: linear-gradient(135deg, #6366f1 0%, #ec4899 100%);
    color: white;
}

.cat-icon {
    font-size: 20px;
}

.cat-name {
    flex: 1;
    font-weight: 500;
}

.cat-count {
    font-size: 12px;
    opacity: 0.7;
}

.toolbar {
    padding: 20px;
    border-radius: 16px;
    margin-bottom: 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.sort-options {
    display: flex;
    align-items: center;
    gap: 12px;
}

.sort-options label {
    font-weight: 500;
    color: #475569;
}

.sort-options select {
    padding: 10px 16px;
    border-radius: 10px;
    border: 1px solid rgba(99, 102, 241, 0.2);
    background: white;
    font-size: 14px;
    cursor: pointer;
}

.games-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 30px;
}

.empty-state {
    text-align: center;
    padding: 80px 40px;
    border-radius: 20px;
}

.empty-icon {
    font-size: 64px;
    margin-bottom: 16px;
}

.empty-state h2 {
    font-size: 24px;
    margin: 0 0 8px;
}

.empty-state p {
    color: #64748b;
    margin: 0;
}

.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    margin-top: 40px;
}

.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 {
    background: white;
    color: #6366f1;
    border-color: #6366f1;
}

.page-btn.active {
    background: linear-gradient(135deg, #6366f1 0%, #ec4899 100%);
    color: white;
    border-color: transparent;
}

.page-dots {
    color: #94a3b8;
    padding: 0 4px;
}

@media (max-width: 1024px) {
    .content-layout {
        grid-template-columns: 1fr;
    }
    
    .sidebar {
        position: static;
    }
}

@media (max-width: 768px) {
    .games-grid {
        grid-template-columns: 1fr;
    }
    
    .page-header {
        flex-direction: column;
        text-align: center;
        gap: 16px;
    }
}

